Witam mam maly problem poniewaz szukalem jakiegos dobrego, fajnego skryptu ktory sprawdzi czy email jest prawidlowy.
@extends('layout/layout')
@section('title')
Stwórz konto
@stop
@section('content')
<div class="news_title">Załóż konto</div>
<div class="news_mid">
<form id="myform" action="{{ URL::route('postCreate') }}" method="POST" accept-charset="UTF-8">
<table border="0" cellspacing="1" cellpadding="4" width="100%">
<tr><td colspan="2" class="white">Nazwa konta:</td><td colspan="2" class="white"><input id="name" style="width: 160px;" maxlength="64" placeholder="Nazwa konta" name="name" type="text" value=""><br>
<small>@if($errors->has('name'))
{{ $errors->first('name') }}
@endif</small>
</td></tr>
<tr><td colspan="2" class="white">Adres email:</td><td colspan="2" class="white"><input id="email" style="width: 160px;" maxlength="64" placeholder="E-mail" name="email" type="text" value=""><br><small>
@if($errors->has('email'))
{{ $errors->first('email') }}
@endif</small></td></tr>
<tr><td colspan="2" class="white">Hasło:</td><td colspan="2" class="white"><input id="password" style="width: 160px;" maxlength="64" placeholder="Hasło" name="password" type="password" value=""><br><small>
@if($errors->has('password'))
{{ $errors->first('password') }}
@endif</small></td></tr>
<tr><td colspan="2" class="white">Powtórz hasło:</td><td colspan="2" class="white"><input id="password1" style="width: 160px;" maxlength="64" placeholder="Powtórz hasło" name="password1" type="password" value=""></td></tr></td></tr>
</table><br><hr>
<table border="0" cellspacing="1" cellpadding="4" width="100%">
<tr><td colspan="2" class="white">Przepisz kod z obrazka:</td><td colspan="2" class="white"><script src='http://www.google.com/recaptcha/api/challenge?k=6LeDYwETAAAAAK6dHO5vObQ5SFQY-rp0x7XFl3kC'></script></td></tr>
</table><br><hr>
<input id="rules" name="rules" type="checkbox" value="1"> Zapoznałem się z regulaminem i akceptuję jego warunki.<br>
<small>@if($errors->has('rules'))
{{ $errors->first('rules') }}
@endif</small><br><br>
{{ Form::token() }}
<center><td class="half"><button class="button"><div class="buttonText">Zatwierdź</div></button></td>
</center>
</form></div>
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://jqueryvalidation.org/files/dist/jquery.validate.min.js"></script>
<script src="http://jqueryvalidation.org/files/dist/additional-methods.min.js"></script>
<script>
// just for the demos, avoids form submit
jQuery.validator.setDefaults({
debug: true,
success: "valid"
});
$( "#myform" ).validate({
rules: {
email: {
required: true,
email: true
}
}
});
</script>
<div class="news_bot"></div>
@stop
I wszystko fajnie skrypt sprawdza ale jak klikam na buttona to powinno mnie przekierowac na postCreate a niestety tak sie nie dzieje :/\
Wie ktos w czyms problem?
ew. co to za skrypt?