Re: Re: dynamic array creation from form elements

From: Date: Fri, 16 Jan 2004 15:43:44 +0000
Subject: Re: Re: dynamic array creation from form elements
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-174831@lists.php.net to get a copy of this message
Hi Ben, Sorry, it does work - so I can safely say you can concat the name of a associ array :-) Thanks, Jon jon bennett | jon@jben.net 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


« previous php.general (#174831) next »