I have the following code and it will execute the php script fine, but it will not process the response back from the server. I have tested the php script by itself and it is returning a response. Any ideas why this is happening?
phoneui.contactFormSubmit = function(){
var cname=$(‘#m1-contactus-cname’).val();
var cemail=$(‘#m1-contactus-cemail’).val();
var cmsg=$(‘#m1-contactus-cmsg’).val();
var ar=$.ajax({
type: ‘GET’,
url: ‘http://barcodedauctions.com/php/controller.php’,
data: ‘action=eum&cname=’+escape(cname)+’&cemail=’+escape(cemail)+’&cmsg=’+escape(cmsg)
}).done(function(msg){
if(msg!=’success’){
alert(msg);
}else{
alert(‘Message Sent!’);
$(‘#m1-contactus-cname’).val(”);
$(‘#m1-contactus-cemail’).val(”);
$(‘#m1-contactus-cmsg’).val(”);
}
});
}