I'm not sure I understand. If you're saying change my inputs to: <input id="search" name="search" type="text"> <input id="btnSearch" name="btnSearch" type="submit" value="Go">
That has no effect, the jQuery form binding still trumps the php $POST branch. On Dec 15, 4:43 pm, Mike Alsup <[email protected]> wrote: > > 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> > > You should never have an element with an id value that does not match > its name value. Get that straightened out and you'll be fine.

