Hey guys, Hope everyone's doing well! So I have a simple form which I am trying to submit using simple POST attribute. The form (codepen.io code here) design features some jquery to move from one question to another. What I would like is ideally is a <button> tag (for the sake of keeping CSS styling) that would submit the form just like an <input> and physically rediredct the user to s1proc.php where the input would be processed. Can you please help me achieve that? Thank you very much in advance
If all your asking for is how to use the <button> tag you can find the documentation here ->http://www.w3schools.com/tags/att_button_form.asp And you would just alter the form to suit your needs similar to the code below <form action="s1proc.php" method="post" id="form1"> First name: <input type="text" name="fname"><br> Last name: <input type="text" name="lname"><br> </form> <button type="submit" form="form1" value="Submit">Submit</button> HTML:
Thank you for your response. The issue I am having with that is the button doesn't actually submit the form but rather moves onto a blank page (without redirecting away from the actual URL/form page)
Gotcha, I thought you were asking much easier question. Now I think that what your asking is after step 8 to send to url.