multidimensional array from html forms

From: Date: Fri, 05 Oct 2001 14:11:50 +0000
Subject: multidimensional array from html forms
Groups: php.general 
Request: Send a blank email to php-general+get-70085@lists.php.net to get a copy of this message
Hi I just a PHP "hobbiest" trying to build a points calculating system for another hobby, please bear with me. I need to build a multidimensional array from a html form the array would look like: $needed_data = array ( array (id = $member_id, points = $position ), array ( id = $member_id, points =$position), array (id=$member_id, points = $position); $member_id will be used to dynamically build the html form, $position will be an integer entered into a text field in that form similar to this Fred($member_id=?) .. [ enter position=? ] John)$member_id=?) ......[enter position=?] etc etc [SUBMIT] IF ( I can get the data into an array like above) { I can make the rest of the script work } but that is a big "if" <G> ....... how can I stucture the form and get that multidimen array from the single name/value pairs passed from an html form?

« previous php.general (#70085) next »