List Info

Thread: note 68511 added to function.echo




note 68511 added to function.echo
user name
2006-07-30 22:53:24
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  -- h
ttps://master.php.net/note/delete/68511/integrated
Del: useless     -- http
s://master.php.net/note/delete/68511/useless
Del: bad code    -- htt
ps://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     -- http
s://master.php.net/note/delete/68511/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/68511
Reject      -- https://mast
er.php.net/note/reject/68511
Search      -- https://
master.php.net/manage/user-notes.php

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

note 68511 rejected from function.echo by philip
user name
2006-07-30 23:45:31
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

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )