Adding image to check box.

Discussion in 'PHP' started by baris22, Nov 28, 2007.

  1. #1
    Hello,

    I can add background image for the checkbox and it works.

    here is the working code

    
    <td width="120"></br><label for="add_image['.$c.']['.$j.']" style="width:120px;height:120px;background-image:url('.$img.');display:block;">
    </label></br></td>
        <td><input name="add_image['.$c.']['.$j.']" id="add_image['.$c.']['.$j.']" type="checkbox"  /></td>
    
    PHP:
    but when i want to add image it does not work

     <td width="120"></br><label for="add_image['.$c.']['.$j.']"><img src="'.$img.'" width="120" height="120" vspace="10" /></label></br></td> 
        <td><input name="add_image['.$c.']['.$j.']" id="add_image['.$c.']['.$j.']" type="checkbox"  /></td> 
    PHP:
     
    baris22, Nov 28, 2007 IP