Link to home
Start Free TrialLog in
Avatar of tomerikv
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\choose2.php on line 3


Can anyone tell me what to do or explain why this happens?

Thanks in advance!

Best regards,
Tom-Erik


     
ASKER CERTIFIED SOLUTION
Avatar of shivsa
shivsa
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tomerikv
tomerikv

ASKER

Thank's that worked!

Best regards,
Tom-Erik