sending form data to multiple scripts for processing - hmmm? (Posted by fairhousing)
Solution for all scripts on one server:
Have one script execute the others and provide the data.
Solutions for multiple servers:
1. Have on script call the others via Perl socket library (could be very slow)
2. Add 3 hidden frames to the page which all have an identical form. onSubmit you have to copy the data from the real form to the hidden ones and submit them all to their respective scripts.
Pretty easy, hah?
Later,
Malte
----------
Malte Ubl - [red]Germany[/red] - http://goKewl.com/
[red]The beats of 1000 hearts inside...[/red] the merciless pulsation... [red]and all I know is I'll be back...[/red] back to trance nation!
fairhousing posted this at 18:17 — 30th October 1999.
They have: 1,587 posts
Joined: Mar 1999
hello:
i'd like one form to send the info in it to multiple scripts located at differ urls to be processed. it there a way to do this?
thanks in advance
----------
My Site Got Hacked, Check It Out!
http://www.birminghamnet.com
Traffic-Website.com free traffic, affiliate programs, hosting, & domain names.
My Site got hacked, but i'm coming back?
elara posted this at 22:52 — 2nd November 1999.
They have: 112 posts
Joined: Apr 1999
Hi,
You don't need to use the Perl socket library to get things done, you can use the LWP module to achieve the task easily. However I don't think both of the methods will slow things down.
If you use the second method tat Malte suggested, i.e. add 3 hidden frames and have them submitted to different urls when someone clicked the button, things will get unreliable because you can't determine whether the sending process has been finished. Moreover the visitor might close the window as soon as they posted the form.
The best solution is to do it with the LWP module.
Later.
----------
http://phpdb.linuxbox.com/
A free database wrapper project!
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.