This doesn't work
| From: | Torsten Ueberschar | Date: | Wed, 23 Apr 2003 07:28:29 +0000 |
| Subject: | This doesn't work | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144963@lists.php.net to get a copy of this message | ||
I tried it in an extra file without any other code. please have a look.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<pre>
<? echo var_dump ($_REQUEST); ?>
</pre>
<form action="dump.php" method="post">
<input name="rx[1][]" type="text"><br>
<input name="rx[1][]" type="text"><br>
<input name="rx[1][]" type="text"><br>
<input name="rx[1][]" type="text"><br><br>
<input name="rx[2][]" type="text"><br>
<input name="rx[2][]" type="text"><br>
<input name="rx[2][]" type="text"><br>
<input name="rx[2][]" type="text"><br>
<input name="send" type="submit">
</form>
</body>
</html>
"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
> >
> >
>
>