Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- </div><script type="text/javascript">
- $(document).ready(function()
- {
- $("#page").css("position","absolute");
- $("#page").css("top",($(document).height()-267)/2+"px");
- $("#page").css("left",($(document).width()-600)/2+"px");
- $("#reg_start").click(function()
- {
- var nick = $("#reg_nick").val();
- var pass = $("#reg_pass").val();
- var mail = $("#reg_mail").val();
- var drzava = $("#reg_drzava").val();
- var spol = $("#reg_spol").val();
- var pass2 = $("#reg_pass2").val();
- var podaci ="korisnik="+nick+"&lozinka="+pass+"&mail="+mail+"&drzava="+drzava+"&spol="+spol+"&pass2="+pass2;
- if($.trim(nick) == '')
- {
- $("#status").html("Unesite nick!");
- $("#status").fadeIn(500);
- setTimeout(function() { $('#status').fadeOut(500); }, 3000);
- return 1;
- }
- $.ajax
- ({
- type: "POST",
- url: "scripts/registruj.php",
- data: podaci,
- success: function(response)
- {
- $("#status").html(response);
- $("#status").fadeIn(500);
- setTimeout(function() { $('#status').fadeOut(500); }, 4000);
- }
- });
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement