Hi
I am trying to dynamically assign the dates on an advanced search so that I can get the URL and use it.
I have defined the following in both the search.php and list.php files:
$xt->assign("date",urlencode(date("Y-m-d H:i:s")));
$xt->assign("dates",urlencode(date("Y-m-d H:i:s",time()-3600)));
I wnat an URL that will dynamically search entries for this 1 hour slot i.e. it will always search for entries within the last hour.
I have tried this URL list.php?a=advsearch&type=and&asearchfield%5B%5D=DATE&asearchopt_DATE=Between&value_DATE={$dates}&tsvalue_DATE={$dates}&type_DATE=date11&value1_DATE={$date}&tsvalue1_DATE={$date}&type1_DATE=date11
but it doesnt pull the value from {$dates} and {$date}
what do I need to do?