Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- dynamic form action?


Merganser - 3:57 am on Feb 9, 2012 (gmt 0)


I have a form that I want submitted to different scripts depending on the selections made by the user in the form. In other words, I want the form action to be dynamic (i.e., "page1.php" below would change depending upon how the user fills out the form).

<form action="page1.php" method="post">

I figure I could have the form data submitted to one script that inspects the data and redirects to different pages using the header(); command. But I wonder if there is a better or more-highly-recommended way of accomplishing the same effect in php.

Any suggestions or guidance would be appreciated.


Thread source:: http://www.webmasterworld.com/php/4415699.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com