rohitmanglik Posted January 15, 2010 Share Posted January 15, 2010 I want to send some value automatically to a domain other then the domain where script is running. I created a form to send the value but how can I automatically trigger it. e.g. <form action="http://domainname.com/save.php" method="POST"><input type="hidden" value="2" name="inp"/> <input type="hidden" value="submit" name="submit"> This form is not getting triggered automatically. What should I do to send the values Please help Quote Link to comment Share on other sites More sharing options...
Catfish Posted January 15, 2010 Share Posted January 15, 2010 what do you mean "autmatically triggered"? never heard of such an idea. if there is a way of doing it it would probably either involve javascript or cron jobs on the server. Quote Link to comment Share on other sites More sharing options...
Brandon_R Posted January 15, 2010 Share Posted January 15, 2010 You could put this in the body tags of the page <body onload="submitform();"> and put the following function in javascript tags function submitform() { document.form.submit(); } Quote Link to comment Share on other sites More sharing options...
trq Posted January 15, 2010 Share Posted January 15, 2010 curl is capable of making http requests. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.