help me plz

Discussion in 'JavaScript' started by aadi92s, Mar 22, 2010.

  1. #1
    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)
     
    aadi92s, Mar 22, 2010 IP
  2. s_ruben

    s_ruben Active Member

    Messages:
    735
    Likes Received:
    26
    Best Answers:
    1
    Trophy Points:
    78
    #2
    You mean check the characters count of text boxes?
     
    s_ruben, Mar 22, 2010 IP
  3. aadi92s

    aadi92s Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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
     
    aadi92s, Mar 22, 2010 IP