Re: value submit button

From: Date: Tue, 24 Jul 2001 10:50:20 +0000
Subject: Re: value submit button
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-59322@lists.php.net to get a copy of this message
hi, example: << html file >> <form action="form_send.php" method="post"> Your username: <input type="text" name="user"> <input type="submit" name="login" value="Login"> <input type="submit" name="remove" value="Delete Account"> </form> << php file >> if (isset($login)) { // Do login... } else if (isset($remove)) { // Remove user... } "Florian SchäFer" wrote: > Hallo out there, > > i hava an document, with one form and two Submit buttons. > How can i check in the target document wich button is pressed? > tried something like if ($submit == 'xxx') . > anyone has a hint? -- Linux... Because it works.

« previous php.general (#59322) next »