You are here: Re: Form Submit Button Question « PHP Programming Language « IT news, forums, messages
Re: Form Submit Button Question

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
*****************************

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация