Jay Jani

Jay Jani

  • 1.8k
  • 3
  • 217

i dont get value of check box in my database..

Jun 6 2019 12:41 AM
FAVOURATE SUBJECT:<td>
<input type="checkbox" name="favourate_subject[]" value="MATHS" <?php echo isset($student ['favourate_subject']) && $student['favourate_subject'] === 'MATHS' ? 'checked' : ''?>>MATHS
<input type="checkbox" name="favourate_subject[]" value="ENGLISH" <?php echo isset($student['favourate_subject']) && $student['favourate_subject'] === 'ENGLISH' ? 'checked' : ''?>>ENGLISH
<input type="checkbox" name="favourate_subject[]" value="SCIENCE" <?php echo isset($student['favourate_subject']) && $student['favourate_subject'] === 'SCIENCE' ? 'checked' : ''?>>SCIENCE</td></tr>

Answers (2)