-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsignup.php
More file actions
73 lines (61 loc) · 2.49 KB
/
Copy pathsignup.php
File metadata and controls
73 lines (61 loc) · 2.49 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
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
<?php
?>
<html>
<head>
<title>Sign Up To Music Service</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
function signUp() {
var username = $("#username").val();
var name = $("#name").val();
var city = $("#city").val();
var pass = $("#pass").val();
var cpass = $("#cpass").val();
var email = $("#email").val();
$.post("insertUser.php",
{ username: username,
name: name,
city: city,
pass: pass,
email: email
},
function(data){
window.location.href = "welcome.php";
});
}
</script>
<style type = "text/css">
body {
font-family:Arial, Helvetica, sans-serif;
font-size:14px;
}
label {
font-weight:bold;
width:100px;
font-size:14px;
}
.box {
border:#666666 solid 1px;
}
</style>
</head>
<body bgcolor = "#FFFFFF">
<div align = "center">
<div style = "width:350px; border: solid 1px #333333; " align = "right">
<div style = "background-color:#333333; color:#FFFFFF; padding:3px;"><b>Sign Up</b></div>
<div style = "margin:30px">
<form action = "" method = "post">
<label>UserName* :</label><input type = "text" id = "username" name = "username" class = "box"/><br /><br />
<label>Name :</label><input type = "text" id = "name" name = "name" class = "box"/><br /><br />
<label>City :</label><input type = "text" id = "city" name = "city" class = "box"/><br /><br />
<label>Password* :</label><input type = "password" id = "pass" name = "password" class = "box" /><br/><br />
<label>Confirm Password* :</label><input id = "cpass" type = "password" name = "confirmpassword" class = "box" /><br/><br />
<label>Email* :</label><input type = "text" id = "email" name = "username" class = "box"/><br /><br />
<input type = "submit" onclick="signUp()" value = " Submit "/><br />
</form>
<div style = "font-size:11px; color:#cc0000; margin-top:10px"></div>
</div>
</div>
</div>
</body>
</html>