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 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php