Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001122

Re: [PHP] how long will REGISTERED GLOBALS be around? From: PHP freak (php <email protected>)
Date: 12/30/01

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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>