View Single Post
Old 01-04-2012, 03:57 AM   PM User | #1
q1h
New Coder

 
Join Date: May 2011
Posts: 34
Thanks: 7
Thanked 0 Times in 0 Posts
q1h is an unknown quantity at this point
Get PHP contents from JQuery

I can use the following JQuery function to return PHP results after a form submission:

Code:
    $(".some_class").bind("submit", function () {
        $.ajax({
            type: "POST",
            cache: false,
            url: "some_file.php",
            data: $(this).serialize(),
            success: function (data) {
                $('#php_results').html(data)
            }
        });
        return false;
    });
Is there a way to get PHP results without submitting a form? Thanks ...
q1h is offline   Reply With Quote