-
Notifications
You must be signed in to change notification settings - Fork 3
/
signup.html
71 lines (64 loc) · 2.29 KB
/
signup.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
<html>
<!--
This is an example registration page.
shown here is the usage of javascript to submit
to a local backend for relaying to Lasso
The ajax request can be removed and regular form submittion
can be used in its place.
Please keep your LassoUid Private, do not put it on your form.
-->
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.0/jquery.js"></script>
<script type = 'text/javascript'>
var register = function() {
jQuery.ajax({
type: "POST",
url: 'signup.php',
data: {
firstName: document.getElementById('first_name').value,
lastName: document.getElementById('last_name').value,
email: document.getElementById('email').value,
phone: document.getElementById('phone').value,
address: document.getElementById('address').value,
city: document.getElementById('city').value,
province: document.getElementById('province').value,
postal: document.getElementById('postal').value,
country: document.getElementById('country').value
},
success: function(arguments){
console.log(arguments);
}
});
};
</script>
</head>
<body>
<div>
First Name:<div><input type='text' id='first_name' value="Test"></input></div>
</div>
<br />
<div>
Last Name:<div><input type='text' id='last_name' value="Registrant"></input></div>
</div>
<br />
<div>
Email:<div><input type='text' id='email' value="test_reg@mylasso.com"></input></div>
</div>
<br />
<div>
Phone:<div><input type='text' id='phone' value="123 456 7890"></input></div>
</div>
<br />
<div>
Address:<div><input type='text' id='address' value="350 Fifth Avenue"></input></div>
City:<div><input type='text' id='city' value="New York"></input></div>
Province:<div><input type='text' id='province' value="NY"></input></div>
Postal Code:<div><input type='text' id='postal' value="10118"></input></div>
Country:<div><input type='text' id='country' value="USA"></input></div>
</div>
<br />
<div>
<button onClick="register()">Register</button>
</div>
</body>
</html>