ShadowMage Posted November 3, 2009 Share Posted November 3, 2009 I have an AJAX request that queries a database. Problem is, the records aren't being found. Am I sending the request properly? postParams = "QuoteNum="+tmpQuote+"&SetNum="+tmpSet+"&Type="+tmpType; //+"&RevNum="+tmpRev;httpRequest.open("POST","/SkyPrice/Scripts/AJAX_Requests/GetDtlInfo.php",true);httpRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded")httpRequest.send(postParams); I know it's accessing the PHP file because it spits out the text it's supposed to if no record is found. Trouble is I know the records exist in the database. It's just not finding them.Help please?Thanks,jkloth Link to comment Share on other sites More sharing options...
Ingolme Posted November 3, 2009 Share Posted November 3, 2009 Well, it's obvious the problem is with the PHP, then.Have you checked to see if PHP is getting all the parameters correctly? Link to comment Share on other sites More sharing options...
ShadowMage Posted November 3, 2009 Author Share Posted November 3, 2009 Ah found the problem. The quote numbers look like this "99999-9" and JS was evaluating it as a mathematical expression.I don't know why, but I always seem to find the answers right after I post here. Sorry, for wasting space.Thanks, Ingolme, for your response. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.