Given the following form and its HTML source code: Quiz Mark out of 5: It must be >=0 and 1. Quiz Mark: 2. 3. It must be >=0 and Which one of the following statements validates this data input...


Given the following form and its HTML source code:<br>Quiz Mark out of 5:<br>It must be >=0 and<br>1. Quiz Mark:<br>2. <input type=text name-mrk><br>3. It must be >=0 and <=5<br><=5<br>Save Data<br>4. <input type= submit name=send value='Save<br>Data'><br>Which one of the following statements validates this data input assuming that Serrors is the array for storing error<br>messages?<br>O if (!isset ($_POST [ 'mrk'])) $errors []-

Extracted text: Given the following form and its HTML source code: Quiz Mark out of 5: It must be >=0 and 1. Quiz Mark: 2.

3. It must be >=0 and <=5><=5 save="" data="">

Which one of the following statements validates this data input assuming that Serrors is the array for storing error messages? O if (!isset ($_POST [ 'mrk'])) $errors []-"Correct the mark"; O if (!preg_match ("/^[1-5] {0,1}$/",$_POST['mrk'])) $errors []-"Correct the mark"; O if (!empty ($_POST['mrk'])) $errors[]="Correct the mark"; O if (!preg_match ("/^[0-5]$/",s_POST['mrk'])) $errors[]="Correct the mark";

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here