File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 $ invalidInputs ++;
2626 } elseif (!filter_var ($ _POST ["email " ], FILTER_VALIDATE_EMAIL )) {
2727 $ emailErr = "Invalid email format " ;
28- $ invalidInputFormats ;
28+ $ invalidInputFormats++ ;
2929 } else {
3030 $ email = htmlspecialchars ($ _POST ["email " ]);
3131 }
3838 $ dateTimestamp = strtotime ($ dateInput );
3939 if ($ dateTimestamp === false ) {
4040 $ dateInputErr = "Invalid date format " ;
41- $ invalidInputFormats ;
41+ $ invalidInputFormats++ ;
4242 }
4343 }
4444
5050 $ timeTimestamp = strtotime ($ timeInput );
5151 if ($ timeTimestamp === false ) {
5252 $ timeInputErr = "Invalid time format " ;
53- $ invalidInputFormats ;
53+ $ invalidInputFormats++ ;
5454 }
5555 }
5656
115115 }
116116 echo "<p>Email: $ email</p> " ;
117117 if ($ emailErr ) {
118- echo "<p style='color:red;'> $ emailErr </p> " ;
118+ echo "<p style='color:red;'> $ emailErrs </p> " ;
119119 }
120120 echo "<p>Date: $ date</p> " ;
121121 if ($ dateErr ) {
You can’t perform that action at this time.
0 commit comments