I have been following Sam's Php + Mysql web developement book.
Having written out the script the way the book has them:
if(!searchtype || !searchterm)
When I ran the script I got the error undefined variables.
Having sifted through various sites and tutorials I found one that showed me the following I have adapted to suit:
if(empty($_POST['searchtype']) || empty($_POST['searchterm']));
I now recieve no error message so I believe it is being parsed. However, that is as far as the script runs, receiveing the message "You have not entered details. Please return to form."
I have checked the form and can see no problem there all layed out as stated in the book (not that this is much comfort seeing as most scripts dont work or are non globals off compliant).
Has anyone else had these particular problems and can anybody tell me why is the variables not being passed from the form.