Re: Problems with multim.arrays in Forms

From: Date: Wed, 23 Apr 2003 06:53:10 +0000
Subject: Re: Problems with multim.arrays in Forms
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144961@lists.php.net to get a copy of this message
Doesn't seem to be an error in this code, there might be a mistake in the code before it (where does $i come from?), recheck your script. ----- Original Message ----- From: "Torsten Ueberschar" <torsten@ueberschar.de> To: <php-general@lists.php.net> Sent: Tuesday, April 22, 2003 6:42 PM Subject: [PHP] Problems with multim.arrays in Forms > Hi evrybody, > > when i send a form to my php-script like this: > > <select name="rx[<?=$i?>][anrede]"> > <option>Anrede</option> > <option value="Herr" <? if ($tmp['anrede'] == > "Herr") echo > "selected" ?>>Herr</option> > <option value="Frau" <? if ($tmp['anrede'] == > "Frau") echo > "selected" ?>>Frau</option> > </select> > <input name="rx[<?=$i?>][name]" type="text" size="35" > maxlength="50"> > > in my $_REQUEST variable i only get the first entry back. the second field > shows only the entered string without the first 10 chars. > > I don't see my mistake. Where is it ? > > Torsten > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#144961) next »