|
Posted by Chuck Anderson on 07/06/06 04:44
flamer wrote:
> David T. Ashley wrote:
>
>
>> Hi,
>>
>> For a web page, I want a SUBMIT button that commits the form data and a
>> CANCEL button that goes to a different target (i.e. a different script).
>>
>> I haven't figured out how to do this, because the <FORM ACTION="... tag
>> seems to make sure that any two submit controls in a form have to go to the
>> same target.
>>
>> BTW, the CANCEL button does not have to submit any form data.
>>
>> Thanks, Dave.
>>
>
> javascript will do it.
>
>
To clarify that a bit more - do not put an action in the form tag. Use a
Javascript Onclick event on each button to set form.action.
The easiest method, however, since you do not need to submit any data on
Cancel, is to simply use two forms.
--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Everyone's journey should be different,
so that we all are enriched
in new and endless ways
*****************************
[Back to original message]
|