Reply to Re: POST form to dynamic page name

Your name:

Reply:


Posted by Tom on 07/31/07 17:26

On Tue, 31 Jul 2007 09:30:41 -0700, SMP wrote...
>
>I've got a simple form with an HTML OPTION block. I'd like to POST the
>form to a page whose name is based on the OPTION they select.
>
>So for example say the user selected this option, I'd like to POST the
>form to a page named "memory.php".
>
>echo "<option value=\"memory\">Memory Utilization</option>";
>
>Any PHP strategies you could provide would be appreciated. Thanks.
>


Maybe you can use Javascript for part of it only, and use an "onChange" event to
load the appropriate form with the proper action. At that point you can fill in
the PHP you needed.

PHP is parsed at the server and since your form action is already determined at
that point, it might be more of a headache trying to pull that off in PHP alone.


Tom
--
Download newsgroup MP3's to your Cell or PDA
Free Trial - http://newsguy.com/cellphone.htm

[Back to original 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

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