Uncaught SyntaxError: Unexpected token <
<div style="border:1px solid #dd4814;padding-left:20px;margin:10px 0;">
<h4>A PHP Error was encountered</h4>
<p>Severity: Notice</p>
<p>Message: Undefined index: email</p>
<p>Filename: controllers/Login.php</p>
<p>Line Number: 11</p>
<p>Backtrace:</p>
<p style="margin-left:10px">
File: D:\Program\OpenServer\OpenServer\domains\votes-leader.dev\application\controllers\Login.php<br />
Line: 11<br />
Function: _error_handler </p>
<p style="margin-left:10px">
File: D:\Program\OpenServer\OpenServer\domains\votes-leader.dev\index.php<br />
Line: 308<br />
Function: require_once </p>
</div>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- //////////// JS ////////////////////////-->
<script src="http://votes-leader.dev/assets/js/jquery.js"></script>
<script src="http://votes-leader.dev/assets/js/vue.js"></script>
<script src="http://votes-leader.dev/assets/js/tether.js"></script>
<script src="http://votes-leader.dev/assets/js/bootstrap.js"></script>
<!-- /////////// CSS //////////////////////////////////-->
<link rel="stylesheet" href="assets/css/tether.css">
<link rel="stylesheet" href="http://votes-leader.dev/assets/css/bootstrap.css">
<link rel="stylesheet" href="http://votes-leader.dev/assets/css/bulma.css">
<title>LOGIN</title>
<style>
.boder
{
background-color: #8193ff;
}
#main
{
background-color: #8193ff;
}
.center-form
{
background-color: #3b7cff;
margin: 300px;
border-radius: 20px;
}
</style>
</head>
<body class="boder" id="login">
<div id="main">
<div id="email-error" v-if="emailerror" style="padding-left: 30%; padding-right: 30%; padding-top: 3px;"><email-error><email-error/></div>
<div id="email-good" v-if="emailgood" style="padding-left: 30%; padding-right: 30%; padding-top: 3px;"><email-good><email-good/></div>
<form method="POST" action="http://votes-leader.dev/login/register/" class="center-form" style="margin-top: 100px;">
<div class="form-group">
<label for="exampleInputEmail1" style="margin-left: 10px">{{ email }}</label>
<input name="email" type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" v-model="emailwriting">
</div>
<button type="submit" class="btn btn-primary" style="margin-left: 40%; margin-bottom: 8px">{{ submit }}</button>
</form>
</div>
<script src="assets/new/js/vue-goodemail.js"></script>
<script src="assets/new/js/vue-erroremail.js"></script>
<script>
new Vue({
el: '#main',
data: {
email: "Ваша почта",
emailwriting: "Укажите email который Вам выдали.",
submit: "Подтвердить",
emailerror: false,
emailgood: false
},
watch: {
emailwriting: function (val) {
var re = new RegExp('^[\\w.+\\-]+@iuca\\.kg$');
if(re.test(this.emailwriting)){
this.emailerror = false;
this.emailgood = true;
}
else{
this.emailerror = true;
this.emailgood = false;
}
}
}
})
</script>
</body>
</html>
<p>Severity: Notice</p>
<p>Message: Undefined index: email</p>
<p>Filename: controllers/Login.php</p>
<p>Line Number: 11</p>