Issue: When I click the #submit element, the email is submitted to a static page

Issue: When I click the #submit element, the email is submitted to a static page
0

#1

Hi!
I have the last issue I can’t solve on my landing page. Look please and help.

Thanks!


#2

hi,

in line 68 of the html file you are missing the name attribute. I think that that is the problem.


#3

Thanks! It was the reason!


#4

Hi, please what do you mean by name attribute? because i’m having the same problem like borka and i’ve put name attribute but it still don’t work.here is my code https://codepen.io/freeCodeCamp/pen/MJjpwO


#5

You have linked to the wrong pen, post your link again.


#6

it is the same one that i get


#7

is there another way of posting a pen code?


#8

Link to your Codepen that have the assignment you are working on. You have just linked to the empty FCC pen that you can fork to start working on the assignment.


#9

the url shows me this https://codepen.io/freeCodeCamp/pen/MJjpwO


#10

lasjorg please try this url https://codepen.io/Fozeu/pen/LgdKXm


#11
  1. Your form is hidden behind the header, that needs fixing, no matter what tests are passing.

  2. This is not correct

<form id="form"><input type="email" name="email" required placeholder="Enter your email address" id="email">
  <a href="https://www.freecodecamp.com/email-submit"><input type="submit" id="submit" value="submit" name="submit"></a>
</form>

Add the action attribute to your form element, and give it the URL you are using in the anchor element, then remove the anchor element (the anchor element should not be wrapping the submit input)


#12

it’s still don’t work man please at this one https://codepen.io/Fozeu/pen/pxLMdr


#13

action is an attribute on the form element, not a separate tag (just like id=“form” is an attribute on the form)

  1. Remove this

<action="https://www.freecodecamp.com/email-submit">

  1. Add this (as a attribute) to the form element

action="https://www.freecodecamp.com/email-submit"


#14

thanks man i finally got it!!!


#15

Good job, now please do fix the header anyway. It may not be part of the test but it’s still important, at least try.


#16

ok i will resize it:grin: