Re: Form Variables not getting passed || Apache, MySql, Win 2k Setup
| From: | Jim Lucas | Date: | Wed, 29 Jan 2003 22:58:35 +0000 |
| Subject: | Re: Form Variables not getting passed || Apache, MySql, Win 2k Setup | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-133565@lists.php.net to get a copy of this message | ||
then run extract($_REQUEST); just above where you want to use the var1
var2... and it will place all the key => value pairs into the local scope.
Jim
----- Original Message -----
From: "Noah" <noah@newminddesign.com>
To: "Philip Olson" <philip@cornado.com>
Cc: <php-general@lists.php.net>
Sent: Wednesday, January 29, 2003 5:55 PM
Subject: Re: [PHP] Form Variables not getting passed || Apache, MySql, Win
2k Setup
> I don't want to use $_REQUEST['my_passed_variable'] at all.
>
> Right now when I do an sql insert on my local machine I have to use the
> following syntax:
>
> INSERT into tablename (field name list)
> VALUES ($_REQUEST['var1'], $_REQUEST['var2'], $_REQUEST['var3'])
>
> I just want to use $var1, $var2, $var3
>
> --Noah
>
> ----- Original Message -----
> From: "Philip Olson" <philip@cornado.com>
> To: "CF High" <noah@newminddesign.com>
> Cc: <php-general@lists.php.net>
> Sent: Wednesday, January 29, 2003 2:23 PM
> Subject: Re: [PHP] Form Variables not getting passed || Apache, MySql, Win
> 2k Setup
>
>
> >
> > One too many $'s in your code, use:
> >
> > $_REQUEST['my_passed_variable']
> >
> > This is how all arrays work, autoglobals are the same.
> > See also:
> >
> > http://www.php.net/variables.external
> > http://www.php.net/variables.predefined
> >
> > Regards,
> > Philip
> >
> > On Wed, 29 Jan 2003, CF High wrote:
> >
> > > Hey all.
> > >
> > > This driving me nuts:
> > >
> > > I've got Apache, MySql, and Windows 2000 running on my local
> machine.
> > > In order to get passed php variables evaluated, whether via a url
query
> > > string, or through a form post, I have to use this syntax:
> > >
> > > $_REQUEST[$my_passed_variable]
> > >
> > > I have no such problem with our hosting company servers; i.e. I can
> access
> > > query_string and form posted variables as $my_passed_variable.
> > >
> > > What is going on here? Is there something in php.ini that needs to be
> > > adjusted?
> > >
> > > Any help whatsoever here is much appreciated,
> > >
> > > --Noah
> > >
> > > --
> > >
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>