dessie1981
Programmer
Hi Everyone,
Im new to javascript and i am having a problem submiting my form using a link.
Here's my code
<html>
<head>
<title>
form test
</title>
</head>
<body>
<script type="text/javascript">
<!--
function formSubmit()
{
document.myform.submit();
}
//-->
</script>
<form name="myform" method="post" action="formtest2.php">
<input type="text" name="purchaseid">
</form>
<!-- "navigate" to somewhere -->
<p>
<A HREF="formtest2.php" onclick="formSubmit()">confirm & navigate to somewhere else</A>
</p>
</body>
</html>
On trying to recieve the parameter i get the Notice : Undefined index: purchaseid
Can anyone help?
Im new to javascript and i am having a problem submiting my form using a link.
Here's my code
<html>
<head>
<title>
form test
</title>
</head>
<body>
<script type="text/javascript">
<!--
function formSubmit()
{
document.myform.submit();
}
//-->
</script>
<form name="myform" method="post" action="formtest2.php">
<input type="text" name="purchaseid">
</form>
<!-- "navigate" to somewhere -->
<p>
<A HREF="formtest2.php" onclick="formSubmit()">confirm & navigate to somewhere else</A>
</p>
</body>
</html>
On trying to recieve the parameter i get the Notice : Undefined index: purchaseid
Can anyone help?