Quote:
Originally Posted by q1h
Thanks for your reply. I'm trying to display the contents of a PHP file in a div (#results) without submitting a form. The above code uses a form submission.
|
how do you want to trigger it? on page load? on a click event? on a timer? also without the form your not submitting any query. if you just want to load a simple php file then:
Code:
$('#php_results').load("somefile.php");
//or on document ready when the dom loads it will happen
$(document).ready(function(){
$('#php_results').load("somefile.php");
});