On Sat, 2003-09-13 at 17:21, Eugene Lee wrote: > On Sat, Sep 13, 2003 at 06:15:29PM +0000, Curt Zirzow wrote: > : * Thus wrote Eugene Lee ([EMAIL PROTECTED]): > : > Something I've noticed in PHP is a proliferation of code like this: > : > > : > <input name="stuff[title]" value="" type="text" size="40"> > [...] > : The way to properly do it would be to set set your name as: > : > : <input name="stuff%5Btitle%5D" value="" type="text" size="40"> > > Great idea, thanks Curt!
I almost fell for this and updated my code. Then I decided to read the spec for myself and noticed that it doesn't say anywhere that % is ok either *grin*. - ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods ("."). Cheers, Rob. -- .---------------------------------------------. | Worlds of Carnage - http://www.wocmud.org | :---------------------------------------------: | Come visit a world of myth and legend where | | fantastical creatures come to life and the | | stuff of nightmares grasp for your soul. | `---------------------------------------------' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php