ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Form Submission GET problems with ?

November 19, 2009 7:09pm

Subscribe [1]
  • #1 / Nov 19, 2009 7:09pm

    Gareth Davies

    491 posts

    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.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases