Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $result = array(
- 'name' => "no"
- );
- echo json_encode($result);
- Вот код js
- $('#authbtn').bind('click', function() {
- $.post('/core/auth.php',
- {
- 'authlogin':$('#authlogin').val(),
- 'pass':$('#pass').val()
- },
- function(response){
- result = $.parseJSON(response);
- if (result.name=='no'){
- noty({ text: 'Успешная регистрация!!!'});
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement