Re: Form Name Attribute Help!

From: Date: Sat, 10 Nov 2001 23:16:40 +0000
Subject: Re: Form Name Attribute Help!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-74132@lists.php.net to get a copy of this message
Kal Amry <kamry@cox.rr.com> wrote: > If I have a form in named formName1 such as: > > <form name="formName1" action="file.php" method="post"> > > How can I get the name "formName1" from within file.php you can't. but you can add a hidden form field to each form to pass along a value. for example: <form name="formName1" action="file.php" method="post"> <input type="hidden" name="form" value="1" /> ... </form> (then you can just access $form in file.php to figure out which form was submitted.) jim

« previous php.general (#74132) next »