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


Given the following form and its HTML source code:<br>Test mark out of 6:<br>1. Quiz Mark:<br>2. <input typetext name=tst><br>3. It must be >=0 and <6<br>It must be >=0 and<br><=6<br>4. <input type= submit name=send value='Save<br>(Save Data<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(!empty (S_POST ['tst'])) Serrors[]=

Extracted text: Given the following form and its HTML source code: Test mark out of 6: 1. Quiz Mark: 2.

3. It must be >=0 and <6 it="" must="" be="">=0 and <=6>

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

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here