This topic is locked

Custom Search Page

6/3/2011 12:59:51 PM
PHPRunner General questions
A
asawyer13 authorDevClub member

I need to be able to create a custom search page. It will need to have fields that are not in the database, etc. I then will use the before query event to create the actual sql statement to do my search. Is this possible? Also can I get the search page and results page to be on different pages, so once I search, I just go from one record to the next?
An example of what I'm trying to do can be found at y p s n dot n e t
For example, if you go to Business Name and put Apple in and then search, you will see basically what I'm wanting to do. You don't have to register or anything like that.
Thanks,

Alan

Sergey Kornilov admin 6/3/2011

Yes, this is possible.
Here is an example of adding your own fields to the form and processing them:

http://xlinesoft.com/phprunner/docs/add_custom_field_to_form.htm

A
asawyer13 authorDevClub member 6/3/2011



Yes, this is possible.


Thanks,

What is the best way to have a search page and then go to another page that shows the results?
Alan

Sergey Kornilov admin 6/3/2011

Alan,
you can use BeforeProcess event of the List page to analyze request, save search parameters in session variables and redirect user to another page.