Click to See Complete Forum and Search --> : Form submission automatically


makhan
06-16-2007, 11:13 PM
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>

?>

Sheldon
06-17-2007, 03:20 AM
Your asking about javascript in the PHP forum, you have a submit button? and you are sending the form to an exe? None of this will work? and why automatic submit the form, what if the user hasn't finished? or even started?