php-general | 2001122
Date: 12/30/01
- Next message: Brian Clark: "Re: [PHP] how long will REGISTERED GLOBALS be around?"
- Previous message: David Jackson: "Re: [PHP] MySQL problem"
- In reply to: Brian Clark: "Re: [PHP] how long will REGISTERED GLOBALS be around?"
- Next in thread: Brian Clark: "Re: [PHP] how long will REGISTERED GLOBALS be around?"
- Reply: Brian Clark: "Re: [PHP] how long will REGISTERED GLOBALS be around?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Brian Clark: "Re: [PHP] how long will REGISTERED GLOBALS be around?"
- Previous message: David Jackson: "Re: [PHP] MySQL problem"
- In reply to: Brian Clark: "Re: [PHP] how long will REGISTERED GLOBALS be around?"
- Next in thread: Brian Clark: "Re: [PHP] how long will REGISTERED GLOBALS be around?"
- Reply: Brian Clark: "Re: [PHP] how long will REGISTERED GLOBALS be around?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

