medaswho Posted February 12, 2009 Share Posted February 12, 2009 Hi all, I hope someone can help me.. i am polling the db and then printing a check box in front of each result, but i get an extra check boc at the beginning. this is the code if(!$result == "") { echo "<h2>some heading.</h2><form>"; while($title = mysql_fetch_array($result, MYSQL_ASSOC)) { $down=$title['title']; echo "<input type='checkbox' name='C1' value='ON'>".$down." "; } //end while } // end while i have tried commenting the "<input type='checkbox'>" part to test like so <!-- <input type =...(etc)> --> and i get my results from the db just fine, but when i leave the check box in i get an extra check box?? it is very frustrating, i hope someone can help. Link to comment https://forums.phpfreaks.com/topic/144974-im-getting-an-extra-check-box-that-ever-happen-to-anyone-else/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.