Skip to main content

Posts

Showing posts from March 3, 2022

PHP#31MySQL#27 - Ajax2

//checkuser.php <!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> <script type="text/javascript" src="jquery-3.6.0.js"></script> </head> <body> <script type="text/javascript">  $(document).ready(function(){ $("#username").blur(function(){ $.ajax({                     type:"POST",                     url:"xuly_checkuser.php",                     data:"user="+$("#username").val(),                     success:function(abc) {                         if(abc=="1") $("#kq").html("User này đã tồn tại. Mời bạn chọn user khác!"); else { $("#kq").html("User này chưa có. Bạn có thể sử dụng"); ...

PHP#30MySQL#26 - Ajax