Jul 28th, 2010, 9:22 PM
(Jul 28th, 2010, 8:35 PM)Ben Wrote: Hi Jerry,
Sorry for not responding sooner - I've been off at a conference the last week.
This is kind of a thorny problem. Web forms just plain weren't designed to send multiple requests - just the single one, when the user submits the form.
Really the best solution would be to tackle this on the database layer: add a trigger to your table to automatically duplicate data when added/updated to your table.
Using CURL is certainly an option, but rather finicky...
May I ask, what precisely is the goal for the duplicated information? Just back-ups? If so, you might want to check out the Form Backup module. That duplicates an entire table + data.
- Ben
Hello Ben.
Here is the issue - I realized I was losing potential referrals on an external site so I came up with this form that looks almost identical to the second form with the referral field being hidden and prepopulated with my name and such, as will be outlined in the TOS. The PHP script I have linked to this fetches the second form, populates that form with my post data, and submits it there.
Do you know if there is something I can include in my php script that would launch Form Tools with the same post data? I am in a tricky situation as I need this process but I would also like to take advantage of FT.
I tried combining both scripts (I'm new to PHP) and had no luck. My idea now is this, but I would prefer an easier alternative...
So, do you know if this here would work? Better yet though, is there a way to simply initiate the process.php script straight from myscript.php?
Thank you for your help!