-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathres_restaurant.html
122 lines (69 loc) · 2.79 KB
/
res_restaurant.html
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!--PABALLO MOLATI 1818416-->
<!DOCTYPE html>
<head>
<meta charset="uft-8">
<meta name="viewpoint" content="width=device-width, initial-scale=1.0">
<title> Sk'haftine restaurant register page </title>
<link rel="stylesheet" type="text/css" href="thestyle.css">
<script >
function validate(){
var Password = document.getElementById('Password');
var Restaurant = document.getElementById('Restaurant');
var number = document.getElementById('number');
if (Password.value.length <"5")
{
alert("Password should be not less than 5 digits...");
if (number.value.length <"8" || number.value.length >"12")
{
alert("number should not be less than 8 digits or more than 12 digits...");
if ( Restaurant.value =="" || Restaurant.value >"50")
{
alert(" Restaurant should not have over 50 characters....");
}
}
return false;
}
else
{
true;
}
}
</script>
</head>
<body>
<div class="header">
<h1>SK'HAFTINI WEB APP</h1>
<ul>
<li><a class="active2" href="#">Welcome </a></li>
<li><a href="home_page.html"> Home </a></li>
</ul>
</div>
<section>
<div class="log_page">
<div class="form">
<form class="register_form" action="res_collect.php" method="POST" onsubmit="return validate()" name="form">
<fieldset>
<legend>Register</legend>
<label for="Restaurant Name">Restaurant_Name <font>*</font></label></br>
<input type="text" name="Restaurant_Name" placeholder="Restaurant Name" id="Restaurant" /></br>
<label for="Email">Email <font>*</font></label></br>
<input type="email" name="Email" placeholder="Email_Address" required/></br>
<label for="Location">Location <font>*</font></label></br>
<input type="text" name="Location" placeholder="Location" required/></br>
<label for="Phone number">Phone_number <font>*</font></label></br>
<input type="telephone" name="Phone_number" placeholder="Phone number" id="number" /></br>
<label for="password">Password <font>*</font></label></br>
<input type="password" name="password" placeholder="password" id="Password"/><br>
<br>
<button type="submit" name="submit" value="sign in">Create_account</button> <input type="reset" value="CLEAR" />
<p class="message"> Already Registered ? <a class="move" href="r_log.html"> Login</a></p>
</fieldset>
</form>
</div>
</div>
</section>
<footer>
<p>Copyright©:Sk'haftini Web App 2020 | Designed by Paballo Molati</p>
</footer>
</body>
</html>