Re: WinXP Error Passing Variables (and creating)
| From: | Nicole Amashta | Date: | Wed, 20 Feb 2002 15:05:47 +0000 |
| Subject: | Re: WinXP Error Passing Variables (and creating) | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-12161@lists.php.net to get a copy of this message | ||
That won't work because you have to actually send the form before using the
variable $username.
Check your php.ini and make sure you have your error_reporting line set
like this:
error_reporting = E_ALL & ~E_NOTICE
hope that helps,
Nicole Amashta
www.aeontrek.com
"Chris" <chris@earleweb.com> wrote in message
news:20020219235422.85778.qmail@pb1.pair.com...
> 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>
>
>