hello i want a function i have check box in php while loop and size fied if i click one check box then call function and check size (have in size text box) and when i click another checkbox then he checked if size same then (return true)ok else alert error(return false)
no, i mean when checked then he check size and then only checked how have same size $res=mysql_query("select * from photos") while($row=mysql_fetch_array($res)){ $size=$row['size']; //LOOP START PHP: <input type="checkbox" /><<input type="text" value="<?php echo $size;"> <br> } // LOOR END PHP: user checked a check box and when checed another then function check both checkbox size same or not if yes return true elae return false alert error