[PHP] No variables imported on form POST

2002-08-21 Thread Jason Annin-White

When I do an HTTP POST to a PHP application on my web server, it is not importing the 
from values as variables.
For example,

?php

if ($submit == click){
echo Hello, $UserName;
}else{
echo '
htmlbody
form method=POST action=test1.php

Enter Your Name
input type=text name=Name/inputbr
input type=submit name=submit value=click/input
/form
/body/html
';
}
?

A simple example form, there is no value $submit after a POST.  I eve tried making an 
app that just echos $HOME and got nothing, so it seems I'm not importing any 
environment variables.  Can anybody point out a place to start looking for the problem?

Jason White



Re: [PHP] No variables imported on form POST

2002-08-21 Thread Bill Leonard

Did you just recently upgrade to PHP v 4.2.x? It has changed the way it
handles variables.

Check:

http://www.php.net/manual/en/language.variables.predefined.php



on 8/21/02 5:05 PM, Jason Annin-White at [EMAIL PROTECTED] wrote:

 A simple example form, there is no value $submit after a POST.  I eve tried
 making an app that just echos $HOME and got nothing, so it seems I'm not
 importing any environment variables.  Can anybody point out a place to start
 looking for the problem?


-- 
Bill Leonard   [EMAIL PROTECTED]
www.machinemen.com407.464.0147

XrackHosting.com - Mac OS X hosting on Apple's Xserve!
http://www.xrackhosting.com/


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




Re: [PHP] No variables imported on form POST

2002-08-21 Thread Jason Annin-White

You are correct Bill, problem solved, thank you.

Jason White

- Original Message -
From: Bill Leonard [EMAIL PROTECTED]
To: Jason Annin-White [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, August 21, 2002 2:13 PM
Subject: Re: [PHP] No variables imported on form POST


 Did you just recently upgrade to PHP v 4.2.x? It has changed the way it
 handles variables.

 Check:

 http://www.php.net/manual/en/language.variables.predefined.php



 on 8/21/02 5:05 PM, Jason Annin-White at [EMAIL PROTECTED] wrote:

  A simple example form, there is no value $submit after a POST.  I eve
tried
  making an app that just echos $HOME and got nothing, so it seems I'm not
  importing any environment variables.  Can anybody point out a place to
start
  looking for the problem?


 --
 Bill Leonard   [EMAIL PROTECTED]
 www.machinemen.com407.464.0147

 XrackHosting.com - Mac OS X hosting on Apple's Xserve!
 http://www.xrackhosting.com/




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