Hi all,
I have a custom standard HTML form that I am submitting via GET so the resulting URL is of the order of: (I have a htaccess file to remove the index.php)
http://www.example.com/events/search_results/?event=event_name&category=category_name
On my results page as I need to do a lot of pre-processing via PHP I am using the input class to obtain these GET values (that I later pass to an embedded template) so:
<?php
global $IN;
$event_name = $IN->GBL('event_name','GET');
$category = $IN->GBL('category','GET');
?>However, this doesn’t work when there is a ? in the URL, which is present by default. If I replace the ? with & it works as expected. So, does anyone have any ideas how I can make the ? disappear - or am I missing something obvious!
Thanks.