Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- function akayit(){
- var eposta = $("input[name=eposta]").val();
- eposta = $.trim(eposta);
- var epostaconfirm = $("input[name=epostaconfirm]").val();
- epostaconfirm = $.trim(epostaconfirm);
- var pass = $("input[name=pass]").val();
- pass = $.trim(pass);
- if(eposta == ""){
- sweetAlert(
- 'Oops...',
- 'Please write your mail adress!',
- 'warning'
- );
- }else if(pass==""){
- sweetAlert(
- 'Oops...',
- 'Please write your password!',
- 'warning'
- );
- }else if(epostaconfirm==""){
- sweetAlert(
- 'Oops...',
- 'Please write again your email adress',
- 'warning'
- );
- }else if (eposta != epostaconfirm) {
- sweetAlert(
- 'Oops...',
- 'Your e-mail adress is wrong!',
- 'warning'
- );
- }
- else{
- var deger = "eposta="+eposta+"&pass="+pass;
- $.ajax({
- type : "POST",
- url : "signup.php",
- data : deger,
- success : function(sonuc){
- if(sonuc == "ok"){
- swal(
- 'Good job!',
- 'You have successfully signed up!',
- 'success'
- );
- }else if(sonuc =="hata"){
- swal(
- 'Ohh no!',
- 'There is some mistake!',
- 'error'
- );
- }else if(sonuc=="kayitlimail"){
- swal(
- 'Hoppa!',
- 'This email adress already registered our system!',
- 'warning'
- );
- }else if(sonuc=="hatalimail"){
- swal(
- 'Hoppa!',
- 'This email format is wrong!',
- 'warning'
- );
- }
- }
- })
- }
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement