This topic is locked

Redirect help

4/15/2008 8:23:11 PM
PHPRunner General questions
F
Fawaz author

Hello,
I have orders_list.php, and I created a custom filter using advanced search page which links me to all orders on a range of date

like this

orders_list.php?a=advsearch&type=and&asearchfield%5B%5D=sDate&type1_sDate=date0&type_sDate=date0&

asearchopt_sDate=Between&&value_sDate=1-4-2008&value1_sDate=30-4-2008


My question is how can I redirect orders_list.php to the previous URL?
Basically, I need the orders list to display all orders based on a range of date, and this rage will be enterd by the end user.
Any help is really appreciated.
Many thanks,

Fawa

J
Jane 4/16/2008

Hi,
you can set up advanced search page as first page using List page: Before process event.

Here is a sample:

if ($_REQUEST["a"]!="search" && $_REQUEST["a"]!="advsearch")

{

header("Location: ..._search.php");

exit();

}