Jump to content

I'm getting an extra check box, that ever happen to anyone else?


medaswho

Recommended Posts

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.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.