<< 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">

<< 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?

Because it works.

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to