Re: Bug #1478: Variables passed to script

From: Date: Mon, 31 May 1999 23:06:39 +0000
Subject: Re: Bug #1478: Variables passed to script
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-6341@lists.php.net to get a copy of this message
This already exists if php_track_vars is enabled (via compile-time configuration switch, run-time configuration setting in php3.ini or Apache configuration files, or by using the <?php_track_vars?> tag before the first PHP code block. This makes the arrays HTTP_GET_VARS, HTTP_POST_VARS, and HTTP_COOKIE_VARS available. Jim On May 31, Nikolai@viny.com wrote: > From: Nikolai@viny.com > Operating system: > PHP version: 3.0.8 > PHP Bug Type: Feature/Change Request > Bug description: Variables passed to script > > PHP should have some way of referencing various types of > passed variables to php script. > Example: > > <? SetCookie ("variable","value1", time()+3600); ?> > <form action="submit.php?variable=value2" method="post"> > <input type="text" name="variable" value="value3"> > <input type="submit"> > </form> > > As you see this form creates 3 variables named variable > (Cookie,URL,Form) there could be also CGI client variable. > and when form submited to submit.php, nobody knows which one would be used as $variable > > Solution: > PHP should be able to reference all of those variables > as example: $Form.variable, $URL.variable , $Cookie.variable > $CGI.variable > and if variable used as simple $variable, php should check > all of them in specified order until finds first, and use > it's value. > > I see it as must-have for sites which work with big ammount > of variables and using other script engines with PHP. > ____________________________ > Thank you for Your attention > And Great Product. > > Nikolai. > > > > -- > PHP Development Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.dev (#6341) next »