View Single Post
Old 05-06-2004, 12:43 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
this is how i embed arrays in a form.

PHP Code:
<form method=post action=<?=$_SERVER['PHP_SELF']?>>
<input type=checkbox name=show[0] value="show 0"> show 0 <br>
<input type=checkbox name=show[1] value="show 1"> show 1 <br>
<input type=checkbox name=show[2] value="show 2"> show 2 <br>
<input type=submit name=submit value=submit>
</form>

<?
if($submit){
  foreach(
$show as $each){
    echo 
$each " is checked. <br>";
  }
}
?>
__________________
Mike
sde is online now   Reply With Quote