jackam1
08-02-2006, 01:03 PM
Hi
I have teh simplest form possible to pass a variable from one form to the other.
I can see from teh header that the variable is passed.
I can also print the variable but The 2nd form does not seem to be ake the value, even though I have named it the same.
Can you spot my mistake please.
Also hoow is it possible for teh 2nd form to start executing teh form as if some on has entered it manually.
I include both forms.
many thanks
Jack
form1:
<form name="myform" method="link" action="testpns.php" >
<b>Enter Part Number: </b><input type="text" name="partnumber"><br>
<input type="submit" name="submit" value="submit ">
form2:
<form name = "database" method="POST" action="
<? echo $PHP_SELF;?>">
Enter Part Number: <input type="text" name="partnumber"><br>
<? echo $partnumber;?>
<input type="submit" name="submit" >
</form>
I have teh simplest form possible to pass a variable from one form to the other.
I can see from teh header that the variable is passed.
I can also print the variable but The 2nd form does not seem to be ake the value, even though I have named it the same.
Can you spot my mistake please.
Also hoow is it possible for teh 2nd form to start executing teh form as if some on has entered it manually.
I include both forms.
many thanks
Jack
form1:
<form name="myform" method="link" action="testpns.php" >
<b>Enter Part Number: </b><input type="text" name="partnumber"><br>
<input type="submit" name="submit" value="submit ">
form2:
<form name = "database" method="POST" action="
<? echo $PHP_SELF;?>">
Enter Part Number: <input type="text" name="partnumber"><br>
<? echo $partnumber;?>
<input type="submit" name="submit" >
</form>