You are here: Re: Two Submit buttons on one form « PHP Programming Language « IT news, forums, messages
Re: Two Submit buttons on one form

Posted by Michael Fesser on 01/13/08 22:01

..oO(ktstone2678@gmail.com)

>I wanted to post the solution for anyone else who might stumble across
>this thread, turns out to be very simple.
>
><form name="theform" action="oops.htm" method="get">
><input name="one" value="type something here...">
><input type="submit" name="submit" value="first"
>onClick="document.theform.action='first.htm';">
><input type="submit" name="submit" value="second"
>onClick="document.theform.action='second.htm';">
></form>

That's no solution. You really don't want to do that.

Do it server-side.

Micha

 

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

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