R: [PHP-WIN] Array
| From: | Darvin Andrioli | Date: | Tue, 21 Aug 2001 13:36:35 +0000 |
| Subject: | R: [PHP-WIN] Array | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-8976@lists.php.net to get a copy of this message | ||
Change your code in:
<?
for ($i=1; $i<6; $i++) {
<input type="text" name="test[$i]">
}
?>
You will obtain an array, named test, with 5 elements.
Bye
Darvin
> -----Messaggio originale-----
> Da: Sichta Daniel [mailto:Daniel.Sichta@swh.sk]
> Inviato: martedi 21 agosto 2001 15.15
> A: php-windows@lists.php.net
> Oggetto: [PHP-WIN] Array
>
>
> Hi there !!
> cfg: php4.0.4pl1, w2k, apache 1.3.20
> Situation:
> <?
> for ($i=1; $i<6; $i++) {
> <input type="text" name="test">
> }
> ?>
> This is all in one form. How can I get all five values of test from this
> kind of code ?
>
> DAN
>