RE: [PHP] forms
| From: | Chris Shiflett | Date: | Tue, 14 Jan 2003 03:56:42 +0000 |
| Subject: | RE: [PHP] forms | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-131509@lists.php.net to get a copy of this message | ||
--- cj <cj@itonsite.com.au> wrote:
> The page that processes the form will have to work out
> which button got pressed?
Exactly.
For starters, use this bit of HTML/PHP code to help you see
what the browser sends you when the form is submitted (add
this to the receiving page):
<pre>
<? print_r($_REQUEST); ?>
</pre>
Alternatively, you can choose to output $_GET or $_POST
(instead of $_REQUEST) depending on which method you choose
for your form. This will show you how to identify which
button was pressed.
Good luck.
Chris