--- Dimitri Marshall <[EMAIL PROTECTED]> wrote:
> What I want to do is have one action in a form execute if the user
> clicks on one button, and another action execute if the user clicks
> on another button. The actions will point to PHP programs.
> 
> Can someone fill me in on what the HTML is for this.

There is no HTML for this, since a form's action attribute can only have a
single value. All you need to do, however, is have the PHP script that
receives the post to distinguish between which button the user clicked.

Name your submit button different names, then use print_r($_POST) or
print_r($_GET) - depending on whether you use POST or GET, and I think
you'll see what you need to be checking.

Hope that helps.

Chris

=====
Chris Shiflett - http://shiflett.org/

PHP Security Handbook
     Coming mid-2004
HTTP Developer's Handbook
     http://httphandbook.org/
RAMP Training Courses
     http://www.nyphp.org/ramp

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

Reply via email to