Re: PHP Scripting errors
| From: | The.Wiz | Date: | Thu, 15 May 2003 19:14:10 +0000 |
| Subject: | Re: PHP Scripting errors | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-19957@lists.php.net to get a copy of this message | ||
I'm not understanding why people still use $HTTP_XXXX if your using a newer
version of PHP, which most people are. Why not use $_Post["firstname"] and
$_Post["lastname"] . Sooner or later you'll have to switch anyway...
"Nick H. -- Level II Engineer" <nickh@supportteam.net> wrote in message
news:001501c319b6$24a4aca0$0c81f93f@cidomain.propagation.net...
> Your register globals in the ini on your local machine may be turned to
OFF.
> Try tossing a $HTTP_REQUEST_VARS; to the top of your php script and see
what
> that does.
>
>
>
> Regards,
> Nick H.
> nickh@supportteam.net
>
> PGP Fingerprint: D507 15FA E277 FD61 4210 69C0 BDE3 793C 2A1E 3D6F
>
> ----- Original Message -----
> From: "Adam Reiswig" <lists-php@honorcomputers.com>
> To: <php-windows@lists.php.net>
> Sent: Wednesday, May 14, 2003 8:11 AM
> Subject: [PHP-WIN] PHP Scripting errors
>
>
> > I have just installed php (along with mysql and apache) on my windows 2K
> > machine and everything seemed to be working correctly. I ran phpinfo()
> > and it returned exactly what I would expect. Possibly since this is my
> > first install of php ever I may not know what I should be looking for.
> > When I ran a form that passed two variables to a receiving php page the
> > page rendered correctly minus the data that should have showed up. I
> > used "get" to pass the variable data and the correct variables were in
> > the url string but not on the page itself. When I posted the two pages
> > at my website (its hosted and I expect set up correctly) the script ran
> > as it should. The data was in the URL and on the page. Below is the
> > form code and then after is the receiving php code.
> >
> > ***** welcomeform.html *****
> > <html><head><title>Welcome Form</title></head><body>
> > <form action="welcome.php" method="get">
> > First Name: <input type="text" name="firstname"
> > id="firstname" /><br
/>
> > Last Name: <input type="test" name="lastname"
> > id="lastname" /><br />
> > <input type="submit" value="GO!" />
> > </form>
> > </body></html>
> >
> > ***** welcome.php *****
> > <?php
> > echo "Welcome to my Website, $firstname $lastname!" ;
> > ?>
> >
> > If anyone knows why my scripts are running correctly at my hosted site
> > but not locally I'd be very grateful for any pointers. Thanks a lot.
> >
> > -Adam Reiswig
> >
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>