I currently have been trying to learn PHP (as Apache module) and it doesn't work. Through Apache I get this error: "[Tue Feb 19 18:41:11 2002] [error] PHP Warning: Undefined variable: username in ...filepath...\apache group\apache\htdocs\second.php on line 13"
The book I'm using to program with PHP says that by creating a NAME value for a FORM gives me a variable with that name (and '$' included infront of it). However, it doesn't seem to work that way: Apache version: 1.3.23 PHP version: 4.1.1 OS: Windows XP I think Windows XP and Apache are the problem because on their site they have listed this warning for XP: "If you will install Apache on Windows XP, be warned. There is a known bug our users have identified; you may or may not encounter it yourself. It will be fixed in the forthcoming Apache 1.3.24 release. The effects of this bug within Apache 2.0 Beta are not yet determined. It appears the combination of duplicating file handles between and parent and child process, in conjunction with blocking sends to the http client, may result in corrupted output. You may not see this in MSIE, which tends to throw any error in the 'Cannot find server or DNS Error' category. If you receive such errors on Windows XP using SSI scripting or PHP scripts, but not static pages, you are probably a victim of this bug. It has been reported to Microsoft, we have no further details at this time." The thing is though, the bug is kind of a strange one... not creating the variable. Is that the result of Apache and XP or am I doing something completely wrong (in the following code I also tried the echo function): --------------------------------------------CODE---------------------------- --------------------------- <HTML> <BODY> <FORM> Please type your name here:<BR> <INPUT TYPE="text" NAME=username><BR><BR> <INPUT TYPE="submit" VALUE="Submit"> </FORM> <BR><BR> You typed: <?php print($username); ?> </BODY> </HTML> -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php