View Single Post
  #1 (permalink)  
Old September 29th, 2003, 08:43 PM
dungey dungey is offline
Authorized User
 
Join Date: Jun 2003
Location: , , .
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default begining PHP, input box

Hello all,

I have a problem where I am trying to pass the data from a form called write.php to a thanks.php page and it will not display the content of the textbox onto the thanks page...

---- write.php--
<html>
<head>
<title>Writing to a file</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<form method="post" action="thanks.php">
<input type="text" name="test1">
<input type="submit" value="Process">
</form>
</body>
</html>

---thanks.php----
<html>
<body>
Thank you for entering your name <?php echo $test1 ?> in our list..<br>
<a href="write.php">Clike here to go back to form</a>
</body>
</html>

i don't know why echo doesn't work, when I insert echo "test" it will display it on the page...

Thanks for all your help
Reply With Quote