Re: picking up a form name

From: Date: Thu, 18 Dec 2003 22:30:56 +0000
Subject: Re: picking up a form name
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-172979@lists.php.net to get a copy of this message
Do you mean a variable being passed to the next page from within a form ex. <input type="text" name="variable_001"> or <form name="form_001" action...> If you are talking about the input name for a text box use this snippit... <?php is(empty($_POST['variable_001']) { // Do negative result code } elseif(!empty($_POST['variable_001']) { // Do positive result code ... Or if it the name of the "actual form" you want try setting a hidden field with the same name as the form. ex. <form name="form_001" action="nextpage.php"> <input type="hidden" name="form_001" value="form_001"> HTH Jas Php wrote:
Hi, If I have more than one form on a page, how can I get the name of the form that was sent on the recieving page without using javascript? tia, Craig ==================== TOP DRAW INC. ==================== p 780.429.9993
f  780.426.1199                   craig@topdraw.com
www.topdraw.com 10210 - 111 Street, Edmonton, Alberta T5K 1K9 ====================


« previous php.general (#172979) next »