Hi
I am trying to submit the form automatically without button, but its not working. Following is the code
[code=html]
<?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="JavaS cript"><!--
document.MyForm .ThisPageURL.va lue = document.URL;
var x = new Date();
document.MyForm .TimeZoneOffset .value = x.getTimezoneOf fset();
document.MyForm .submit();
//--></script>
?>[/code]
[Please use CODE tags when posting source code. Thanks! --pbmods]
I am trying to submit the form automatically without button, but its not working. Following is the code
[code=html]
<?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="JavaS cript"><!--
document.MyForm .ThisPageURL.va lue = document.URL;
var x = new Date();
document.MyForm .TimeZoneOffset .value = x.getTimezoneOf fset();
document.MyForm .submit();
//--></script>
?>[/code]
[Please use CODE tags when posting source code. Thanks! --pbmods]
Comment