How to be able to actually submit survey results in html?

Here’s my codepen for the second challenge in html and css


I’m using the plain button, input=“email” and input=“number” and i’m not entirely sure how to modify my code to pass. My current problem is actually submitting stuff with it. Like, my button does nothing, etc.

Hello!

It’s not doing anything because you didn’t write it correctly. To create a form that actually submits something, you have two options (without JavaScript):

  1. Define a button with the attribute type set to submit:

    <form action="/where/to/submit/the/form" method="post">
      <!-- other fields -->
      <button type="submit">Send</button>
    </form>
    
  2. Define an input with the attribute type set to submit:

    <form action="/where/to/submit/the/form" method="post">
      <!-- other fields -->
      <input type="submit" value="Send" />
    </form>
    

That said, it’s not required to actually send the form, just build it to pass.

Thank you, I didn’t know there was a submit type input

1 Like