Re: [PHP] Forms / Array Question...

2003-06-28 Thread Justin French
on 28/06/03 4:20 AM, Noel Wade ([EMAIL PROTECTED]) wrote:

> Anyone know if this (A) works

have you tried it?  surely it couldn't take more than 10 seconds to find out
eh?

> and 
> (B) is not actually just some undefined behavior that's risky to use?

it's quite common, although i believe the syntax is name='foo[1]' not
name='$foo[1]'.


Justin


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Forms / Array Question...

2003-06-27 Thread Jim Lucas
(A) works
  YES
(B) is not actually just some undefined behavior that's risky to use?  
  It works fine for me.

Jim Lucas


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Forms / Array Question...

2003-06-27 Thread Noel Wade
Hi All,

Quickie Question... Possibly a silly one; but it would make my life easier if it works!

I know that with a SELECT MULTIPLE, you have to use the convention: NAME="$varName[]" 
to get all of the responses into a nice neat array.  I'm wondering about the mechanism 
behind this - is it simply doing a behind-the-scenes "$varName[] = X;", "$varName[] = 
Y;", "$varName[] = Z;"  operation to dynamically generate the array?  (Note: this 
is not my main question - keep reading. :-P )

If so, then it would follow that it's also possible to do something like this:




...

And get a nice array with your text values.  Anyone know if this (A) works and (B) is 
not actually just some undefined behavior that's risky to use?  

Thanks!  Take care,

--Noel