How can I submit a form using a <a href='xxxxx'>Submit</a> (be able to retrieve its values using "POST") and load a different page other the one that was indicated in the “action” parameter of the form?
Thanks
Moderators: macek, egami, gesf

<a href="javascript:document.form_name.submit();">Submit</a>
<form method="post" action="index.php" onsubmit="javascript:window.open('http://www.test.com/test.php','mywindow');">
....

<a href = "JavaScript: document.form_name.action='desired_target.php'; document.form_name.submit()">Link</a>
Users browsing this forum: No registered users and 1 guest