note 68511 rejected from function.echo by philip

From: Date: Sun, 30 Jul 2006 23:45:31 +0000
Subject: note 68511 rejected from function.echo by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-115362@lists.php.net to get a copy of this message
Note Submitter: jbuford at siue dot edu ---- I am having a problem and I don't know where to turn. I have php set up on my computer and it will run the different functions, even with the echo command. However, when I get a user defined value into a form and try to echo value of the field (by using the name of the field) on the next page, all I get is a blank. The code that I am using is as follows: Page 1: <?php echo "Hello World!!!"; ?> <form id="form1" name="form1" method="get" action="Hello2.php"> <label> <input type="text" name="field1" /> </label> <br /> <label> <input type="submit" name="Submit" value="Submit" /> </label> </form> Page 2 (Hello2.php): <body> <?php echo "Hello World!!!"; echo ("<br>Text Field = " . $field1);?> </body> Output: Hello World!!! Text Field = I am using IIS v5.1 and PHP v4.4.2. Can anyone help me figure this out. I might have some of my settings wrong, but other functions work (like getenv('REMOTE_ADDR')) as long as I put them in and display from the same page. My problem seems to be with passing infromation from one page to another. Can someone help please? Thank you for your time. --J

« previous php.notes (#115362) next »