makhan Posted June 17, 2007 Share Posted June 17, 2007 Hi I am trying to submit the form automatically without button, but its not working. Following is the code <?php $name="Myname"; <form name="MyForm" action="/cgi-bin/matweb.exe" method="POST"> <input type="hidden" name="mlmfile" value="test"> <input type="hidden" name="name" value=" <?PHP echo $name ?>" > <p><input type="submit" name="Submit" value="Execute"></p> </form> <script type="text/javascript" language="JavaScript"><!-- document.MyForm.ThisPageURL.value = document.URL; var x = new Date(); document.MyForm.TimeZoneOffset.value = x.getTimezoneOffset(); document.MyForm.submit(); //--></script> ?> Quote Link to comment Share on other sites More sharing options...
MasterACE14 Posted June 20, 2007 Share Posted June 20, 2007 You do know you have commented out the javascript right? Regards ACE 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.