Re: problem with form

From: Date: Tue, 10 Jul 2001 13:01:31 +0000
Subject: Re: problem with form
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-10210@lists.php.net to get a copy of this message
Hi, > hope anyone has an idea on how to fix this... > > <form> > <input type="submit" name="Submit" value="Submit Request" > OnClick="submit.php" class="button"> > <input type="submit" name="Edit" value="Edit Request" > OnClick="edit.php" > class="button"> > </form> you could give the form one action and then check on the following page wether $Submit or $Edit is set. form.php <form action="doit.php" method="post"> ... </form> doit.php <?php if(isset($submit)) { do this, display that } if (isset($edit)) { alter this, whatever } cheers Johannes

« previous php.db (#10210) next »