note 68511 added to function.echo
| From: | jbuford at siue dot edu | Date: | Sun, 30 Jul 2006 22:53:24 +0000 |
| Subject: | note 68511 added to function.echo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-115358@lists.php.net to get a copy of this message | ||
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
----
Server IP: 64.71.164.2
Probable Submitter: 24.178.249.216
----
X-Spam-Status: No, hits=4.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER,
HTML_30_40,HTML_MESSAGE autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.echo.php
Edit -- https://master.php.net/note/edit/68511
Del: integrated -- https://master.php.net/note/delete/68511/integrated
Del: useless -- https://master.php.net/note/delete/68511/useless
Del: bad code -- https://master.php.net/note/delete/68511/bad+code
Del: spam -- https://master.php.net/note/delete/68511/spam
Del: non-english -- https://master.php.net/note/delete/68511/non-english
Del: in docs -- https://master.php.net/note/delete/68511/in+docs
Del: other reasons-- https://master.php.net/note/delete/68511
Reject -- https://master.php.net/note/reject/68511
Search -- https://master.php.net/manage/user-notes.php