Hi
Newbie here. I am trying to have two form actions on submission using a
javascript. The first calls a php class (http://www.blah.org/test.php)
and the second adds data to a mySQL database via a php function call (<?
php echo $editFormAction ; ?>. Both actions work; however, only the
second action in the fucntion runs. Here is the code:
<script language=javasc ript>
<!--
function But1()
{
document.form1. action = "http://www.blah.org/test.php"
document.Submit Abstract.submit (); // Submit the page
document.Submit Abstract.action = <?php echo $editFormAction ; ?>;
document.Submit Abstract.submit ();
return true;
}
-->
</script>
In this example, the document.Submit Abstract.action = <?php echo
$editFormAction ; ?>; action works fine. If I reverse the order:
<script language=javasc ript>
<!--
function But1()
{
document.Submit Abstract.action = <?php echo $editFormAction ; ?>;
document.Submit Abstract.submit ();
document.form1. action = "http://www.blah.org/test.php"
document.Submit Abstract.submit (); // Submit the page
return true;
}
-->
</script>
only the test.php file runs. Any ideas?