Re: Processing a web form / loop etc.
| From: | Andri Heryandi | Date: | Wed, 31 May 2006 07:06:55 +0000 |
| Subject: | Re: Processing a web form / loop etc. | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-41953@lists.php.net to get a copy of this message | ||
USE ARRAY OF FORM OBJECT
<form method=post action="actionfile.php">
<input type=text name="category[]">
<input type=text name="category[]">
...
...
<input type=text name="category[]">
<input type=submit>
</form>
actionfile.php
<?
for($i=0;$i<count($category);$i++)
{
if($category[$i]!="")
echo "You Choose ".$category[$i]." <br>";
}
?>
Modify that script.
I Hope it will help you.