Suppose that form's buttons are

<input type= submit name="submit"  value="Edit">
<input type= submit name="submit"  value="Delete">
<input type= submit name="submit"  value="New">

<?
switch ($submit){

    case "Edit":
             .......;
            break;
    case "Delete":
            ...;
            break;
    case "New":
            ...;
            break;
    default:
           ...;
}
?>

That's all

"Jonathan Rosenberg" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have been digging through the documentation for a while, but I can't
find
> the answer to this ...
>
> If I have a form with multiple submit buttons, how can I tell in PHP which
> button was clicked?
>
> --
> JR
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to