-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreateUser.php
More file actions
42 lines (38 loc) · 1.61 KB
/
Copy pathcreateUser.php
File metadata and controls
42 lines (38 loc) · 1.61 KB
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
<html>
<title>Create User</title><head>
<a href="index.php">
<img alt="OneCall" src="OneCall logo.png" align="left" ></a><br>
</head>
<body bgcolor="black" text="white" style="text-align: center;background-image: url(bg.jpg);
background-repeat: repeat-x;"">
<div style=" margin-left: 380px;
float: left;
"> <head>
</head>
<body>
<h1><center></font>Create User</center></h1>
<?php
include "db_connect.php"
?>
<div>
<form action="addUser.php">
First name:<br>
<input type="text" name="firstname" maxlength="40" required><br><br>
Last name:<br>
<input type="text" name="lastname" maxlength="40" required><br><br>
Email:<br>
<input type="email" name="email" maxlength="40" required><br><br>
Home Address:<br>
<input type="text" pattern="[a-zA-Z0-9]{1,25}" maxlength="400" name="homeadd" oninvalid="setCustomValidity('Please enter the address in valid format. Only digits and alphabets are allowed')" onchange="try{setCustomValidity('')}catch(e){}"><br><br>
Home Phone:<br>
<input type="text" pattern="\d*" name="homephone" maxlength="12" required oninvalid="setCustomValidity('Please enter the phone number in valid format. Only digits are allowed')" onchange="try{setCustomValidity('')}catch(e){}"><br><br>
Cell Phone:<br>
<input type="text" pattern="\d*" name="cellphone" maxlength="12" required oninvalid="setCustomValidity('Please enter the phone number in valid format. Only digits are allowed')" onchange="try{setCustomValidity('')}catch(e){}"><br><br>
<input type="submit" value="Create User">
</form>
</div>
<?php
$conn->close();
?>
</body>
</html>