Re: Problems with multim.arrays in Forms
| From: | Torsten Ueberschar | Date: | Wed, 23 Apr 2003 07:22:24 +0000 |
| Subject: | Re: Problems with multim.arrays in Forms | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144962@lists.php.net to get a copy of this message | ||
hmmm. $i is counted in a for structure. but when i set method=get in the
form tag. Then it works. But i don't want to send all data via get.
"Salah Faya" <salah@e-touch.ws> schrieb im Newsbeitrag
news:007501c30965$20c58bb0$e10d10ac@compaq2002...
> 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
> >
> >
>
>