You are here: Re: Forms and submit buttons « HTML « IT news, forums, messages
Re: Forms and submit buttons

Posted by Alan J. Flavell on 04/17/06 18:16

On Mon, 17 Apr 2006, Jonathan N. Little wrote:

> If you have more than one submit button if you [g]ive them different
> names then your receiving script can "see" which button was
> activated and process accordingly
>
> <input type="submit" value="Do One Thing" name="do_this">
> <input type="submit" value="Do Something Else" name="do_that">
>
> so if the 1st submit button was click the receiving script would see
> this key value pair:

Right; but in real life it's more complicated than that, because there
are situations where forms get submitted without the user activating
any of the submit buttons, and the server side process needs to be
ready to cope with that.

Might I suggest my own page on the topic? Although I admit it hasn't
been extensively updated recently, I think it's still fairly close to
reality: http://ppewww.ph.gla.ac.uk/~flavell/www/trysub.html

regards

 

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

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