Page 1 of 1

[SOLVED] submitting an hidden form

Posted: Fri Sep 23, 2005 12:51 am
by dude81
Hi,
How to submit a hidden form?

Posted: Fri Sep 23, 2005 1:06 am
by mickd
use:

<form method="post or get" action="pagetosendinfoto.php">
<input type="hidden" name="itsname" value="itsvalue">
<input type="submit" value="whatitsaysonthesubmitbutton">
</form>

Posted: Fri Sep 23, 2005 1:09 am
by dude81
I meant hidden form, I dont want to display any submit button, by the way I got a solution we can use onload Javascript:document.hiddenform.submit(), but Javascript console says it document.myhiddenform.submit() is not a function
what do?

Posted: Fri Sep 23, 2005 2:53 am
by s.dot

Code: Select all

<html>
<head>
<script type="text/javascript">
<!--
function submitForm()
{
   document.form.submit();
}
//-->
</script>
</head>
<body onLoad="submitForm();">

// form here

</body>
</html>

Posted: Fri Sep 23, 2005 3:58 am
by dude81
SOLVED