Is it possible for me to have two self submitting forms on a single page. If yes how do I allot different blocks of code to each form ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have a hidden input with two different values.
On the server side, different on the basis of
$_REQUEST['form_no']Or you could also add it as a name parameter in submit element.
Use
isset($_REQUEST['form0'])to differentiate.Another way of doing it is to append a GET parameter to differentiate
Use
$_GET['form_no']to differentiate.