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
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|