switch form actions

admin

Administrator
Staff member
Hi!

I've got a form which I first have to submit with action="<?php echo $PHP_SELF;?>" in order to provide users with proper selection alternatives from a database.

When the form is completed, however, I'd like to submit the form to another page.

How could I achieve that using several buttons? I.e. how do I change the action attribute, depending on which button is pressed?

Thanks,
Maria
 
Back
Top