Jump to content

Recommended Posts

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.
Link to comment
https://forums.phpfreaks.com/topic/13119-php-html-post-action-script/
Share on other sites

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]
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.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.