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

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

#1

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: https://www.freecodecamp.com/email-submit) that confirms the email address was entered and that it posted successfully.
Email form strats from line 188


#2

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,
Best,
Nick


#3

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 = “https://www.freecodecamp.com/email-submit” >

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: