RE: [PHP] RE: muliple form array values

From: Date: Mon, 17 Mar 2003 05:11:24 +0000
Subject: RE: [PHP] RE: muliple form array values
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-139907@lists.php.net to get a copy of this message
> hi guys i have multiple media to update in an entry for instance > > <input type="text" name="fileedit[TITLE][123]"> > > where 123 is the fileid of the media in the database , how could i > possibly > loop through the post vars of fileedit and get each entry to update ? > > <input type="text" name="fileedit[TITLE][123]"> > <input type="text" name="fileedit[TITLE][124]"> > > so therefore i could have something like this , loop through and update id > 123 > and update 124 ? foreach($_POST['fileedit']['title'] as $key=>$value) { //$key will be 123, 124, etc... //$value will be whatever was entered in text box } ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

« previous php.general (#139907) next »