Cannot understand why my form action (send email to static freecodecamp page) does not work

Hi,

Please see the form code below:

<form id="form" action="https://www.freecodecamp.com/email-submit">
				<h2>Missed out on our latest release? Stay tuned for our next drop!</h2>
				<label for="fname">First Name</label><br>
				<input type="text" id="fname" name="fname" placeholder=" "><br>
				<label for="lname">Last Name</label><br>
				<input type="text" id="lname" name="lname" placeholder=" "><br>
				<label for="email">Email Address</label><br>
				<input type="email" id="email" name="newsletter" placeholder=" " required><br>
				<input type="submit" class="submit" id="submit"> 
				


			</form>

Hi @argybisk !

Welcome to the forum!

What project is this?
Are you referring to a failing test for one of the FCC projects?

1 Like

Hi! its from Product Landing Page (https://www.freecodecamp.org/learn/responsive-web-design/responsive-web-design-projects/build-a-product-landing-page). I also tried to use the ‘analyze html code’ button in CodePen to fix a few things here and there but that did not solve it.

I just read through the full error message and it tells you what the issue is and how to fix it.

Do you have a specific question about the error message. Particularly that second sentence? Cause that is where the answer is :grinning:

OMG haha! I did read that but, I guess I did not actually READ that.

AssertionError: The #email element’s name attribute should have a value of “email” : expected ‘newsletter’ to equal ‘email’

From the last part I understood that either <name=“email”> or <name=“newsletter”> is correct and this is why I did not change it. Such a silly thing to get stuck to!

Thank you :slight_smile: