This topic is locked

getting hte search field

12/17/2009 10:41:51 PM
PHPRunner General questions
J
junior79 author

hello,
I have been learning a tremendous amount reading the different posts here but I havent see my question i dont think
I would like to beable to save just the search value from the list page into $datasrc in the list page: Before SQL query
so if the search is 065300002062 I would like $datasrc to equal that
i would imagine it is $datasrc = soemthing to do with $strSQL but i'm not sure what,
Thanks
Junior

J
Jane 12/18/2009

Junior,
search values are in the session variables:

http://www.xlinesoft.com/phprunner/docs/phprunner_session_variables.htm

J
junior79 author 12/20/2009

I've looked at them all but i cant figure out which session variable holds just the search string that the user entered
if the user entered 90210 as the search string i just want the 90210 in $srcsata variable



Junior,
search values are in the session variables:

http://www.xlinesoft.com/phprunner/docs/phprunner_session_variables.htm

J
Jane 12/22/2009

Hi,
current search value is in the $_SESSION["<table name>_searchfor"] if you use simple search or in the $_SESSION["<table name>_asearchfor"]["<field name>"] if you use advanced search.