So I have a small application that is tied to a pager company. Basically I have a backend database that manages a list of users, their numbers and some canned text messages they can send. I submit this to the pager's website and walla, nifty tool. Well this took off way more than I expected and it's being used 150+ times a day. Needless to say they now want some form of tracking to go along with this. Here's where the problem arises. They want to know:Who sent the message (unityID)When the message was sentWho it was sent toBody of the text messageEasy enough in most situations. However, I have to submit this to usamobility's webform. Meaning, I need to send the form to two locations at the same time. I know this isn't possible so I'm exploring alternative methods. I've been told Ajax can do that but that means bringing in a new technology that has to be supported. I'm trying to avoid that. I'd rather stick with simple javascript. In a perfect world I would click submit, the page would submit to a new page that would fire off form data to usamobility, and leave the user at a "page sent to usamobility" page and remain within my tool. The only thing I found was the onsubmit execute a javascript but I'm not sure how to make the activate a query. That would work as well as it would execute the logging query and continue to usamobility. Any insight into how you would handle this is great. Guildelines1) The form must eventually submit to usamobility in form variables. No URL variables2) Cannot use Java (some people use PDA's that can execute javascript but not javaapplets)3) Must be able to execute a query. I'll continue to look for any further answers and post my solution when I get it.
4/17/2007 8:11:15 AM
Are you using PHP?There is a Snoopy class out there which is a PHP browser emulator. When you reload your tool, you can call the snoopy form submit to submit to the pager site and then run the code to insert your logs in your database.
4/17/2007 8:21:32 AM
http://www.php.net/curl
4/17/2007 8:24:32 AM
^ curl is the way to go. It is definitely the best way to handle multiple form submissions if you have php available to you.
4/17/2007 8:28:21 AM
^^[Edited on April 17, 2007 at 9:12 AM. Reason : "form variables. No URL variables" you mean POST vs GET. ]
4/17/2007 9:11:26 AM
^ I was saying it like that because you can still use post and submit url variables at the same time. I'm actually using Cold Fusion but that helps. Thanks!
4/17/2007 9:37:13 AM
walla
4/17/2007 10:57:24 AM