Hello Experts, Please Help.... My checkboxes are not passing respective textboxes values to another page My checkboxes are moving in a loop <input type="checkbox" name="chkID[]" id="chkID" value="<?=$rowSubjectsx['ID']?>"> My text boxes are also moving in a loop.. <input type="text" name="quantity[]" id="quan" size="3"/> I want to show respective checkboxes sujects and values to another page Please help....
What exactly is the problem? What is happening? You can give the fields that belong together the same key, so later on you know which one belongs to which... if that's your problem? <input type="text" name="quantity[<?=$rowSubjectsx['ID']?>]" id="quan" size="3"/> PHP: And on the next page.. foreach ((array)$_POST['chkID'] AS $id) { // Value of the "text" field $value = $_POST['quantity'][$id]; } PHP: If that doesn't help, please rephrase your question.