Bug #1478: Variables passed to script

From: Date: Mon, 31 May 1999 22:03:48 +0000
Subject: Bug #1478: Variables passed to script
Groups: php.dev 
Request: Send a blank email to php-dev+get-6340@lists.php.net to get a copy of this message
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.

« previous php.dev (#6340) next »