View Single Post
  #1 (permalink)  
Old 12-17-03, 06:42 AM
brucewestfall brucewestfall is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy cannot send variable to new page (code included)

Here is the code for both pages. I've included the url from my browser. Other pages seem to work fine, but I can't get the variable to show up on other pages.
Php version 4.2.2
Opera version 7.21

// http://localhost/optiontest.html

<HTML>
<BODY>
<form action="optiontest.php" method="post">
<SELECT NAME="firstname">
<OPTION value = "Bruce">Bruce</OPTION>
<OPTION value = bruce>bruce</OPTION>
</SELECT>
<br>
<input type=submit value="TEST IT">
</form>
</BODY>
</HTML>

//http://localhost/optiontest.php
<?
echo "This prints<br>";
echo $firstname;
echo "<br>...but the name didn't";
?>


Help would be really cool.