Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
jose macedo
6,041 Pointsjqeury help submit will not work
please help submit wont work this is my code https://w.trhou.se/66txzbguwh
1 Answer
Steven Parker
243,658 Points
Your submit works fine.
But it won't actually do anything until you have some server-side support to handle the postback.
For a simple confirmation, add this additional "submit.html" page to your project:
<!DOCTYPE html>
<html>
<head>
<title>Successful Submit</title>
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" title="no title" charset="utf-8">
</head>
<body>
<form action="index.html" method="get">
<p>
<label for="username">Your form has been submitted!</label>
</p>
<p>
<input type="submit" value="Go back to your form" id="submit">
</p>
</form>
</body>
</html>
Then, change the "form" element in your index.html to this:
<form action="submit.html" method="get">
Happy coding! --sp
Jason Anello
Courses Plus Student 94,610 PointsJason Anello
Courses Plus Student 94,610 PointsIt seems to submit for me.
Why do you think it's not working?