Re: how long will REGISTERED GLOBALS be around?
| From: | PHP freak | Date: | Mon, 31 Dec 2001 02:46:13 +0000 |
| Subject: | Re: how long will REGISTERED GLOBALS be around? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-79090@lists.php.net to get a copy of this message | ||
For what it's worth - casting my vote - I would vote that the PHP/Zend people keep
REGISTER_GLOBALS as an option for one main reason:
NEWBIES!
Think of how nice it is for the total newbies to be able to have this first tutorial:
<?php print "Hello $myname"; ?>
<form action="<?php print $PHP_SELF; ?>">
what is your name?
<input type="text" name="myname">
<input type="submit" name="submit" value="submit">
</form>
Think of how many PHP-CURIOUS people it'd turn off if you could ONLY do it with
$_REQUEST["myname"]
Hell - I *still* have to go to the php.net announcement page to remember the syntax of the new type.
It doesn't come naturally. Nothing like $variablename.
I think the EASE of the form example, above, is what got me into PHP in the first place.