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 Link to comment https://forums.phpfreaks.com/topic/188553-automatic-trigger-a-form/ 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. Link to comment https://forums.phpfreaks.com/topic/188553-automatic-trigger-a-form/#findComment-995450 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(); } Link to comment https://forums.phpfreaks.com/topic/188553-automatic-trigger-a-form/#findComment-995452 Share on other sites More sharing options...
trq Posted January 15, 2010 Share Posted January 15, 2010 curl is capable of making http requests. Link to comment https://forums.phpfreaks.com/topic/188553-automatic-trigger-a-form/#findComment-995455 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.