Re: Processing a web form / loop etc.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux