Re: Help! Weirdness with PHP as CGI on Win95
| From: | O. | Date: | Wed, 19 Jul 2000 01:25:44 +0000 |
| Subject: | Re: Help! Weirdness with PHP as CGI on Win95 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-7190@lists.php.net to get a copy of this message | ||
""Bradley McCrorey"" <mccrorey@optusnet.com.au> wrote in message
news:009001bff11e$21ea9d80$0100a8c0@globe...
>
> The real problem is that php doesn't seem to be accepting switches from
> forms.
>
> By switches I mean something like this:
> <form action="mail.php" method="post">
> <input type="text" name="bleah">
> </form>
Submit button? I assume you left that out for brevity.
>
> and then in the handler..
>
> <?
> echo $bleah;
> ?>
I always use print $bleah; or better yet, print "bleah = $bleah ! [" .
strlen($bleah) . "]";
Also, try dumping the $HTTP_POST_VARS array and see what is being set there.
foreach ($HTTP_POST_VARS as $key => $val) { print "$key = $val<BR>\n"; }
>
> This doesn't seem to work and it's driving me nutty.
>
> Is this a common problem on Win95? Seems like a pretty substantial bug if
> so...
>
> BTW, phpinfo() reckons I'm using
> "PHP Version 4.0.1pl2"
I use PHP 4.0.1.pl2 on Win98SE with OmniHTTPd, never had such a problem.
--
O.