jek1134 Posted June 28, 2006 Share Posted June 28, 2006 INQUIRY:An HTTP POST from an HTML form action points to a PHP script on my server. The PHP script is used to write to a table in a MySql database that I've setup for this. What I need to know is if there is a way to send that form data to another action script (which [i]could[/i] be something other than PHP) on another server which is already in place, ready to receive the data as well. In other words, to hit my script first, then pass along to e.g. (http://www.example.com/scripts/formactionscript.php). To use PHP to modify a form action once the data has been written to the database, or as the data is being written. Quote Link to comment https://forums.phpfreaks.com/topic/13119-php-html-post-action-script/ Share on other sites More sharing options...
AV1611 Posted June 28, 2006 Share Posted June 28, 2006 is the question:Can I post a single form to two scripts at the same time? if so, the answer is yes..Lemme know, I'll post how if you want...[!--quoteo(post=388875:date=Jun 28 2006, 11:39 AM:name=jek)--][div class=\'quotetop\']QUOTE(jek @ Jun 28 2006, 11:39 AM) [snapback]388875[/snapback][/div][div class=\'quotemain\'][!--quotec--]INQUIRY:An HTTP POST from an HTML form action points to a PHP script on my server. The PHP script is used to write to a table in a MySql database that I've setup for this. What I need to know is if there is a way to send that form data to another action script (which [i]could[/i] be something other than PHP) on another server which is already in place, ready to receive the data as well. In other words, to hit my script first, then pass along to e.g. (http://www.example.com/scripts/formactionscript.php). To use PHP to modify a form action once the data has been written to the database, or as the data is being written.[/quote] Quote Link to comment https://forums.phpfreaks.com/topic/13119-php-html-post-action-script/#findComment-50468 Share on other sites More sharing options...
jek1134 Posted June 28, 2006 Author Share Posted June 28, 2006 Thank you for the reply.The question is: can I post to one php script, which in turn posts to an entirely diffferent script. Not two at once, rather, like handing the information to a script which writes it to a database, AND passes the info along to another script somewhere else. The idea is to have all of the posts appear as though they are coming from my URL, which acts as a HUB between two other entities. Quote Link to comment https://forums.phpfreaks.com/topic/13119-php-html-post-action-script/#findComment-50471 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.