forked from rohanshiroor/MuffitoApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsanitize-form.txt
76 lines (65 loc) · 2.24 KB
/
sanitize-form.txt
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
function val_lastname() {
var lname = document.forms["register"]["lastname"].value;
lname = $.sanitize(lname);
document.forms["register"]["lastname"].value = lname;
}
function val_age() {
var age = document.forms["register"]["age"].value;
age = $.sanitize(age);
document.forms["register"]["age"].value = age;
}
function val_flatno() {
var flatno = document.forms["register"]["flatno"].value;
flatno = $.sanitize(flatno);
document.forms["register"]["flatno"].value = flatno;
}
function val_streetName() {
var streetName = document.forms["register"]["streetName"].value;
streetName = $.sanitize(streetName);
document.forms["register"]["streetName"].value = streetName;
}
function val_area() {
var area = document.forms["register"]["area"].value;
area = $.sanitize(area);
document.forms["register"]["area"].value = area;
}
function val_city() {
var city = document.forms["register"]["city"].value;
city = $.sanitize(city);
document.forms["register"]["city"].value = city;
}
function val_pincode() {
var pincode = document.forms["register"]["pincode"].value;
pincode = $.sanitize(pincode);
document.forms["register"]["pincode"].value = pincode;
}
function val_dob() {
var dob = document.forms["register"]["dob"].value;
dob = $.sanitize(dob);
document.forms["register"]["dob"].value = dob;
}
function val_state() {
var state = document.forms["register"]["state"].value;
state = $.sanitize(state);
document.forms["register"]["state"].value = state;
}
function val_country() {
var country = document.forms["register"]["country"].value;
country = $.sanitize(country);
document.forms["register"]["country"].value = country;
}
function val_email() {
var email = document.forms["register"]["email"].value;
email = $.sanitize(email);
document.forms["register"]["email"].value = email;
}
function val_username() {
var username = document.forms["register"]["username"].value;
username = $.sanitize(username);
document.forms["register"]["username"].value = username;
}
function val_pwd() {
var password = document.forms["register"]["password"].value;
password = $.sanitize(password);
document.forms["register"]["password"].value = password;
}