dessie1981
Programmer
Hi Everyone,
Im having some trouble submiting a form using a href, am new to javascript and could use some help
This is what i am trying and doh its just not working
<html>
<head>
<title>
form test
</title>
</head>
<body>
<script type="text/javascript">
<!--
formSubmit()
{
documents.myform.submit();
}
//-->
</script>
<form name="myform" method="post">
<input type="text" name="purchaseid">
</form>
<p>
<A HREF="formtest2.php" ONCLICK="formSubmit()">confirm</A>
</p>
</body>
</html>
this is how im handleing the data
<?
echo $_POST['purchaseid'];
?>
Any help would be much appreciated
Des
Im having some trouble submiting a form using a href, am new to javascript and could use some help
This is what i am trying and doh its just not working
<html>
<head>
<title>
form test
</title>
</head>
<body>
<script type="text/javascript">
<!--
formSubmit()
{
documents.myform.submit();
}
//-->
</script>
<form name="myform" method="post">
<input type="text" name="purchaseid">
</form>
<p>
<A HREF="formtest2.php" ONCLICK="formSubmit()">confirm</A>
</p>
</body>
</html>
this is how im handleing the data
<?
echo $_POST['purchaseid'];
?>
Any help would be much appreciated
Des