954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

trying to cal a php page within jquery but no data returned

hi ,
this is my code. i want to return data using a php page after processing a query within it.

$.post('check_booked.php', { room:roomv, srtdate:sdatev, eddate:sdatev},
       	function(data){
		alert( data);
    });


before completing php page i test using online code which returned nothing.. i don't know what wrong,
as i have understood anything within that php page eg: html code should be returned by this code. this is the test code i used and which didn't return anything.

$.post("check_booked.php", function(data) {
	alert("Data Loaded: " + data);
	 });


and i have

<h1>hi</h1>


in my php page

Please help me solve this much appreciate help..!

Virangya
Junior Poster
122 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: