Form submit problem
I am trying to submit data in a form to two different php files but i try adding in a second address in the action= field it doesn't work.
here is what I have:
<form name="frm_63681eef6d" id="frm_63681eef6d" method="POST" enctype="multipart/form-data" action="pay2.php" onSubmit="return false;">
I need the data from one of the input fields in this form to be echoed onto another page and still be submitted to the database using another php file so i need to be able to post the data to 2 places at once.
Pretty sure that you can't use two actions.
Why not do something like:
1) POST the data to your script that puts the data in the database.
2) Assuming you haven't outputted anything from the script, just change the header to the other file making sure you send along the variable it needs.
You can also consider just including the other php file after you process it with the first file as long as you don't change the $_POST["variable"]