Error transfer check value

  • Thread starter Thread starter Anonymous
  • Start date Start date
A

Anonymous

Guest
data.GIF


When I click on the check box and click on delete I can count how many check box checked but I want to pass the userid relative to the check box.
plz tell me how I can do it. Also tell me how "If I click on the top of the check box all will be checked".

I'm using "echo '<input name="chk2[]" type="checkbox" value=$query_data[1]>'; But I get only "Array" rather the value of that field.
 
PHP and HTML
take a look over there...
u've got to use
Code:
document.forms['formname'].elements['elementname[]'].length
//this will give you the lenght of the array
then use a for loop...
and ..
document.forms['formname'].elements['elementname[]'][i].checked  = true;
 
Thanks, but this helps me to select all fields, I also want to pass that values of selected fields.
 
Back
Top