You are here: Re: onsubmit « HTML « IT news, forums, messages
Re: onsubmit

Posted by Adrienne Boswell on 01/15/08 02:30

Gazing into my crystal ball I observed Chris <chris95008@yahoo.com>
writing in news:91776f54-5df8-42a3-a381-0f521ecc5791
@u10g2000prn.googlegroups.com:

> I have two onsubmits I'd like to include in my <FORM...> tag and
> wanted to know before I go through the work of putting in all the code
> if this is even allowed. And if not then how should I be calling it?
>
><FORM action="test.cgi" method="POST" onsubmit="csave()"
> onSubmit="return checkform()">
>
> Thanks,
> Chris
>

The way to do it is to name the submit buttons, <input type="submit"
name="submit1" value="Submit 1">
and
<input type="submit" name="submit2" value="Submit 2">

Then you check server side which submit got pressed.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

 

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

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