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

Posted by nettleby@googlemail.com on 04/17/06 18:18

Jonathan N. Little wrote:

>
> <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:
>
> do_this="Do One Thing"
>
> or with the second
>
> do_that="Do Something Else"
>

Hi, Thanks for the reply.

I understand that if I used unique name/value combinations to identify
the buttons then it will work as you've described. What I was
interested in is if a default submit button doesn't have a name defined
at all, then wouldn't you still be able to differentiate at the server
end between that and another (e.g. reset) button if that did have a
name defined. I figured that the submit button wouldn't pass any data
from the button, but the reset button would, if pressed.


Thanks,

Debbie

 

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

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