Hi Can a php page have more than one forms.
Thanks IM
hi, yes it can
PHP doesn't have forms - HTML does!
I believe you can have as many forms as you like in one page. Just try it and see what happens.
how many forms u want...
if("POST"==$_SERVER["REQUEST_METHOD"]) switch($_POST["act"]) { case 1: handleForm1(); break; case 2: handleForm2(); break; } else { ?> <form name="form1" method="POST"> <input type="hidden" name="act" value="1"> <input type="submit"> </form> <form name="form2" method="POST"> <input type="hidden" name="act" value="2"> <input type="submit"> </form> <? } //something like...
Thank You all