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


ZakAltF4 - 4:59 pm on Feb 10, 2012 (gmt 0)


If I am understanding you correctly, this shouldn't be handled via PHP ... It should be a JavaScript (More specific -- JQuery) issue. You could use something like:


//set your function parameters -- onclick .. onchange etc ..
$('#formId').attr('action', 'page1.php');

// more parameters
$('#formId').attr('action', 'page2.php');

// More paramenters
$('#formId').attr('action', 'page3.php');



That's how I would go about it ..

-- Zak


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