Sorry, it does work - so I can safely say you can concat the name of a associ array :-)
Thanks,
Jon
jon bennett | [EMAIL PROTECTED] new media creative _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n . n e t
91 Gloucester Rd, Trowbridge, Wilts, BA14 0AD t: +44 (0) 1225 341039 w: http://www.jben.net/
On 16 Jan 2004, at 15:38, Ben Ramsey wrote:
Try using $_POST["listItem$i"] instead of $_POST["listItem" . $i] or do something like this:
$post_var_name = 'listItem' . $i;
this do $_POST[$post_var_name];
I don't think you can do any evaluation within the brackets. Thus, you couldn't use the concatenating dot.
-Ben
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php