[jQuery] jQuery and PHP form problem

[jQuery] jQuery and PHP form problem


Hi all, I've been messing around with jQuery (which is pretty cool),
but I'm having an issue with jQuery form binding and PHP $POST
variable processing.
Basically, what I'm running into is my php branch is not executed
while the form has an id (jQuery is taking precendence). If I remove
the id, the php branch works, but then obviously the jQuery code
doesn't run.
Anyone have any ideas how I can get both to run? Can I put php code in
jQuery code? I've tried to but so far have not had success! Below is a
snippet of my code:
<form id="form_search" method="post">
<label for="search_field">Search:</label>
<input id="search" name="search_field" type="text">
<input id="btnSearch" name="search_button" type="submit"
value="Go">
</form>
//this php executes when there is no form id
<?php
if($_POST['search_button']){
//do whatever when form is submitted
?>
//this jQuery binding trumps the php code
$('#form_search').bind('submit', function() {
        //do stuff here on submit
});