Help: submit email post issue. (product landing page story # 12

Hello FCC warriors i need help.
My prduct landing page does not want to post the the info from submit button to the link it is provided. could any one help with this issue. ?

2.User Story #12: When I click the #submit element, the email is submitted to a static page (use this mock URL: that confirms the email address was entered and that it posted successfully.
Email form strats from line 188

This took me a little while, to debug, but I figured out your problem. Firstly, you have two forms with the id form, which is confusing the unit tests. Delete the first id = form. Next, your email input has no name, so the label is for nothing. Give the email input a name = “email”. Hope this helps,

1 Like

You have an email form starting at line 57:
<form id = “form” class = “py-5 text-white”>
and, another email form at line 191:
<form id = “form” action = “” >

Both of these elements have the same id which is incorrect, an id basically acts as an identifier for an element in the page, and multiple elements cannot have the same id, only one element can be associated to one id.

Try correcting these and try again.
Hope this helps :slight_smile:

Where exactly did it teach us about the action = “ ? I got stuck on that step and don’t recall learning about it. I figured that was all JavaScript stuff.