Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Submitting a Form on Page Load
09-28-2002, 09:10 PM #1
- Join Date
- Sep 2002
- Thanked 0 Times in 0 Posts
Submitting a Form on Page Load
Im looking for a way of submitting a form each time a page is loaded, the form will send an sms when certain conditions are met. I cant use a button for this, so i need some way of doing it automatically.
Currently i am trying:
<BODY onLoad="document.body.monitor.submit()"> <form method="POST" action="http://webstrikesms.com/sms.exe/" name="monitor"> <input type="hidden" name="FromEmail" value="monitoring"> <input type="hidden" name="TextMessage" value="monitoring"> </form>
09-29-2002, 04:03 AM #2
- Join Date
- Jun 2002
- Thanked 32 Times in 32 Posts
Don't know much about wireless - but this:
...has one too many objects (guess which). Using the onload handler like this could get you into an endless loop; 'when certain conditions are met' is kind of mysterious. Might want to write something (at the server) to a hidden field as a flag to determine (client-side) whether the data in question has already been sent.