Re: Multiple forms

From: Date: Mon, 30 Dec 2002 20:23:36 +0000
Subject: Re: Multiple forms
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-129706@lists.php.net to get a copy of this message
You should be able to insert a hidden field in your form and that check against that in your PHP script to determine which (if any) of your form was submitted: <form> <input type=hidden name=f value=1> </form> <form> <input type=hidden name=f value=2> </form> in your script: <?php switch ($_POST['f']) { case '1' : // first form break; case '2' : // second form break; default: // no form } That's just one way you can do it. Hopefully it addresses your problem! Cheers, Marco -- ------------ Marco Tabini Publisher php|architect A Publication of the MTA Group, Inc. 28 Bombay Ave. Toronto, ON M3H 1B7 Canada Phone: (416) 630-6202 Fax: (416) 630-5057

« previous php.general (#129706) next »