tomerikv
asked on
Forms and the method post
Hi!
I have two php pages on php for windows, and I want to post a variable from the page choose.php to choose2.php
I have the form in choose.php:
<form name="choosedate" action="choose2.php" method="post">
<select name="fday">
<option value="01">01
<option value="02">02
</select>
<input type="submit" name="Submit" value="Submit">
</form>
and in choose2.php
i try to write:
<?php
echo "$fday";
?>
But i get the error:
Notice: Undefined variable: fday in E:\Inetpub\wwwroot\tev2\ch oose2.php on line 3
Can anyone tell me what to do or explain why this happens?
Thanks in advance!
Best regards,
Tom-Erik
I have two php pages on php for windows, and I want to post a variable from the page choose.php to choose2.php
I have the form in choose.php:
<form name="choosedate" action="choose2.php" method="post">
<select name="fday">
<option value="01">01
<option value="02">02
</select>
<input type="submit" name="Submit" value="Submit">
</form>
and in choose2.php
i try to write:
<?php
echo "$fday";
?>
But i get the error:
Notice: Undefined variable: fday in E:\Inetpub\wwwroot\tev2\ch
Can anyone tell me what to do or explain why this happens?
Thanks in advance!
Best regards,
Tom-Erik
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Best regards,
Tom-Erik