login und jqurary
This commit is contained in:
parent
be4ba34a2d
commit
ba52004aec
2 changed files with 6 additions and 4 deletions
2
jquery-3.3.1.min.js
vendored
Normal file
2
jquery-3.3.1.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -4,14 +4,14 @@
|
|||
<script src="../jquery-3.3.1.min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
var email,pass;
|
||||
var name,pass;
|
||||
$("#submit").click(function(){
|
||||
email=$("#email").val();
|
||||
name=$("#name").val();
|
||||
pass=$("#password").val();
|
||||
/*
|
||||
* Perform some validation here.
|
||||
*/
|
||||
$.post(window.location.href,{email:email,pass:pass},function(data){
|
||||
$.post(window.location.href,{name:name,pass:pass},function(data){
|
||||
if(data==='done')
|
||||
{
|
||||
window.location.href="/admin";
|
||||
|
@ -22,7 +22,7 @@ $(document).ready(function(){
|
|||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<input type="text" size="40" placeholder="Type your email" id="email"><br />
|
||||
<input type="text" size="40" placeholder="Type your name" id="name"><br />
|
||||
<input type="password" size="40" placeholder="Type your password" id="password"><br />
|
||||
<input type="button" value="Submit" id="submit">
|
||||
</body>
|
||||
|
|
Reference in a new issue