Re: Problem about Reading input from a Form
| From: | Stewart G. | Date: | Mon, 25 Feb 2002 15:50:37 +0000 |
| Subject: | Re: Problem about Reading input from a Form | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-86099@lists.php.net to get a copy of this message | ||
Its not a register_globals issue. You must wrap $user and $address in php
print statements rather than just in the html.
Your name is <?= $name ?>.
Your address is <?= $address ?>.
That will work with either GET or POST.
-- Stewart
On Mon, 25 Feb 2002, Kostas Karadamoglou wrote:
> I set the register_globals On in the php.ini file but when i do php.info it
> shows that is off.About the better way, How i can manipulate this variables,
> can you give me an exable.
> Thank you
>
>
> >From: "Ford, Mike [LSS]" <M.Ford@lmu.ac.uk>
> >To: 'Kostas Karadamoglou' <kknt2000@hotmail.com>, php-general@lists.php.net
> >Subject: RE: [PHP] Problem about Reading input from a Form
> >Date: Mon, 25 Feb 2002 14:30:09 -0000
> >
> > > -----Original Message-----
> > > From: Kostas Karadamoglou [mailto:kknt2000@hotmail.com]
> > > Sent: 25 February 2002 14:09
> > >
> > > I put and the POST method but I have the same problem
> > > I don't know why, any ideas?
> > > Thank you
> > >
> > > >
> > > >-----Original Message-----
> > > >From: Kostas Karadamoglou [mailto:kknt2000@hotmail.com]
> > > >Sent: Monday, February 25, 2002 12:58 PM
> > > >
> > > >I can't take the variables $user and $address from the form
> > > to the php
> > > >file.
> >
> >Which version of PHP? Is register_globals set to Off? If it is, you can
> >either turn it On (if you have control of the server), or (better!) use the
> >$HTTP_POST_VARS (4.0) or $_POST (4.1) array.
> >
> >Cheers!
> >
> >Mike
> >
> >---------------------------------------------------------------------
> >Mike Ford, Electronic Information Services Adviser,
> >Learning Support Services, Learning & Information Services,
> >JG125, James Graham Building, Leeds Metropolitan University,
> >Beckett Park, LEEDS, LS6 3QS, United Kingdom
> >Email: m.ford@lmu.ac.uk
> >Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
>
>
>
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device:
> http://mobile.msn.com
>
>
>