Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Forms and the method post

Posted on 2003-11-27
2
Medium Priority
?
633 Views
Last Modified: 2008-03-06
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


     
0
Comment
Question by:tomerikv
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 24

Accepted Solution

by:
shivsa earned 320 total points
ID: 9834539
<?php

$fday = $_POST['fday'];
echo "$fday";
?>
0
 
LVL 1

Author Comment

by:tomerikv
ID: 9836809
Thank's that worked!

Best regards,
Tom-Erik
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This article discusses four methods for overlaying images in a container on a web page
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question