Re: dynamic array creation from form elements

From: Date: Fri, 16 Jan 2004 15:38:49 +0000
Subject: Re: dynamic array creation from form elements
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-174828@lists.php.net to get a copy of this message
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

« previous php.general (#174828) next »