Hi!
I'm trying to convince a form to submit itself automatically so I can save a value in a field and use it later in the page. The code I'm using is:
<form method="post" name="WhosHere">
<input type="hidden" name="CurrentUser" value=http://www.webdeveloper.com/forum/archive/index.php/"<%=UserIs%>"></p>
</form>
<script language=JavaScript>
document.forms.WhosHere.submit();
</script>
However, when I try this, the form keeps on submitting, it sort of goes into a loop. I tried bumping the code up to the form tag, like this:
<form method="post" name="WhosHere" onload="javascript:document.forms.WhosHere.submit();">
But that doesn't do a thing!!!!!
Ideas?? Comments?? Thank you very much!!
Natalia
I'm trying to convince a form to submit itself automatically so I can save a value in a field and use it later in the page. The code I'm using is:
<form method="post" name="WhosHere">
<input type="hidden" name="CurrentUser" value=http://www.webdeveloper.com/forum/archive/index.php/"<%=UserIs%>"></p>
</form>
<script language=JavaScript>
document.forms.WhosHere.submit();
</script>
However, when I try this, the form keeps on submitting, it sort of goes into a loop. I tried bumping the code up to the form tag, like this:
<form method="post" name="WhosHere" onload="javascript:document.forms.WhosHere.submit();">
But that doesn't do a thing!!!!!
Ideas?? Comments?? Thank you very much!!
Natalia