-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheck.php
42 lines (31 loc) · 950 Bytes
/
check.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
Include("include/checkfunctions.php");
$check = $_POST['check'];//the item to check from the form
$option = $_POST['option'];//the option that determines what you want to check
switch ($option) {//this switch will check what sort of check you want to do
case 'checkgender':
echo checkgender($check);
break;
case 'checkalfa':
echo checkalfa($check);
break;
case 'checknum':
echo checknum($check);
break;
case 'checkpostcode':
echo checkpostcode($check);
break;
case 'checkphone':
echo checkphone($check);
break;
case 'checkemail':
echo checkemail($check);
break;
case 'checkadres':
echo checkadres($check);
break;
default:
echo "something went wrong.....try again please";
break;
}
?>