Hi,
I have a form on one page where someone can enter an area code "310" and then retreive records from a table based on that value.
the results are returned on the 1st page correctly. on the next page that variable is lost somehow.
here's the query:
$query = "SELECT * FROM tnh2 where area = '$area_code'";
now, if i actually enter the are code instead of the variable it works thoughout all pages.
$query = "SELECT * FROM tnh2 where area = '310'";
i can't figure out why it would loose the value of the variable, should it be declared somewhere else on the page? if so, how is this done?
thanks for your help.