Re: Re: how to passing two dimension array
| From: | Rizki Salamun | Date: | Sat, 11 Jan 2003 05:50:33 +0000 |
| Subject: | Re: Re: how to passing two dimension array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-131229@lists.php.net to get a copy of this message | ||
its works!!
thanks alot guys, i have tried with this codes:
array1.php
----------
<FORM METHOD=POST ACTION="array2.php">
<?php
for($i=1; $i<=3; $i++)
{
for($j=1; $j<=3; $j++)
{
?>
<SELECT NAME="<?php echo "try[$i][$j]" ?>">
<OPTION value="1">One
<OPTION value="2">Two
<OPTION value="3">Three
<OPTION value="4">Four
<OPTION value="5">Five
</SELECT>
<?php
}
}
?>
<INPUT TYPE="submit" value="NEXT">
</FORM>
array2.php
----------
<?php
for($i=1; $i<=3; $i++)
{
for($j=1; $j<=3; $j++)
{
echo $try[$i][$j];
echo "<BR>";
}
}
?>
and the output are come out in the array2.php
since the output can printed out, means that this page (array2.php) can
receive these variable and we can send the values of these variable to
mysql.
thanks
-rizki-