> 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/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to