&(and) Error in HTML URL or Link

&(and) Error in HTML URL or Link

You are sending data with

Ajax with a POST or GET method is incomplete working or not working. This error, which is one of the most common problems in JavaScript, is çömyself with a single function. 

Your script should be as follows;

$.ajax({
   type: "POST",
   url: 'ajax.php',
   data: "user_id='"+useridvalue+"'",
   success: function(response){
   }
});	

all we have to do here is to practice the useridvalue value with  encodeURIComponent(useridvalue) function as below.

$.ajax({
   type: "POST",
   url: 'ajax.php',
   data: "user_id='"+encodeURIComponent(useridvalue)+"'",
   success: function(response){
   }
});	
Türkçe English Deutsch Dansk Español Română