Re: Can't get URL or POST variables
| From: | Matt | Date: | Mon, 15 Jul 2002 00:49:09 +0000 |
| Subject: | Re: Can't get URL or POST variables | ||
| References: | 1 2 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-7748@lists.php.net to get a copy of this message | ||
To last post
Funny enough people know about manuals as they are a link close to the
download link on the devs site. Although if your new to PHP and the links
manuals acn be a little confusing as it mentions more than you need or want
to know. People post on these news groups for help not just to be shunted
off to a manual link. If that was the case why bother running a news
server/group why not just have in big bold letters READ THE MANUAL why cant
you try to be a little helpfull and try and sort his prob.
To Poster
sorry i cant help you as iam new my self and realy have no idea the only
thing i can thnk of is have you got the global settings switched on ?
Matt
"Christian Stadler" <stadli@gmx.de> wrote in message
news:20020714234327.50854.qmail@pb1.pair.com...
> Hi,
>
> http://www.php.net/manual/en/reserved.variables.php
> http://www.php.net/manual/en/security.registerglobals.php
>
> HTH
>
> Greetz,
>
> Christian Stadler
>
> "Ted R Lowe" <trl@creativespirits.org> schrieb im Newsbeitrag
> news:4.3.2.7.2.20020714182340.00b18db0@creativespirits.org...
> > i've installed PHP 4.2.1 as CGI with Apache 2.0.39 running under NT 4.0.
> >
> > It is working mostly, since i can run this script:
> >
> > <?php phpinfo(); ?>
> >
> > But i can't get the variables passed in via a URL or POST to be set
> properly.
> >
> > When i run this test script, tst.php:
> >
> > <?php print "$tstvar"; ?>
> >
> > via http://localhost/tst.php?tstvar=tstvalue
> >
> > i get this Notice:
> >
> > Notice: Undefined variable: tstvar in tst.php on line 1
> >
> > instead of the expected output:
> >
> > tstvalue
> >
> > The same thing happens when i try to POST data into a .php script.
> >
> > Any help would be appreciated!
> >
> > Thanks,
> > ted
> >
>
>