Re: Checkboxes

From: Date: Fri, 14 Mar 2003 09:01:45 +0000
Subject: Re: Checkboxes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-139684@lists.php.net to get a copy of this message
The following is completely untested but might yield the results you want. It assigns a value to the skill array, prints the post var, and then (I hope) advances the array pointer to the next array element: Good luck, hugh if (count($_POST['skill'])>0) { for ($i=0;$i<count($_POST['skill']);$i++) { echo "<input type=checkbox name=skill[($i+1)] value=$i>".$_POST['skill']."<br>\n"; next($_POST['skill']); // should advance the pointer to the next element in the array } > } > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#139684) next »