View Single Post
  #2 (permalink)  
Old 06-21-09, 11:44 AM
smithygotlost smithygotlost is offline
Aspiring Coder
 
Join Date: Jul 2006
Location: United Kingdom
Posts: 412
Thanks: 12
Thanked 3 Times in 3 Posts
if that is the only coding you have thats probally why

what you need is a form like you got but with some php

Code:
if ($_POST["textname"] != ""){
				$text= $_POST["textname"];
				echo "You Submitted $text";
				exit;

				}
				echo "<form method=\"post\">
				Text: <input name=\"txtname\" type=\"text\" value=0 /><br />
				<input name=\"\" type=\"submit\" value=\"Submit\" />
				</form>";
if you wanna receive the text on another page then do something like

Page1.php

Code:
				echo "<form method=\"post\" action=\"page2.php\">
				Text: <input name=\"txtname\" type=\"text\" value=0 /><br />
				<input name=\"\" type=\"submit\" value=\"Submit\" />
				</form>";
Page2.php
Code:
				if ($_POST["textname"] != ""){
				$text= $_POST["textname"];
				echo "You Submitted $text";
				exit;

				}
That should give you a good idea

Good luck

Mike
__________________
Make People Friendly Say " Thanks "
Reply With Quote