I create the table and use ajax to pass data.
This is my ajax part, I put the parameter in URL, but php code doesn't read it.
$.ajax({
type:"POST",
url:"system_setting.php?p=add",
data:"username="+username+"&password="+password+"&nickname="+nickname+"&authority="+authority,
success:function(data){
viewData();
}
});
I use $page=isset($_GET['p'])?$_GET['p']:'';
to judgment parameter, but it doesn't read. Please teach me how should I do, thank you.