I think I'm missing something here really obvious! I am using a script where you get a variable from one page and post to another. I've just realised that some people are jumping straight to the second page (it rates higher in search engines) so the variable (yourname) remains unset. I want to use isset so that if there is no variable the field is pre-filled to prompt for Your Name?
A simplified version of the code is shown below and is posting to itself. Any idea what I'm doing wrong? Thanks in advance, Tom <?PHP if(!isset($_GET['realname'])) { $realname = 'Your Name'; } ?> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <form name="form1" method="post" action="testform.php"> Please Enter <input name="guest1" type="text" value="<?php print $realname; ?>"> <input type="submit" name="Submit" value="Submit"> </form> </body> </html> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php