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.

Mixing segment-based URL with querystrings?

January 19, 2012 3:41pm

Subscribe [1]
  • #1 / Jan 19, 2012 3:41pm

    Ralph Bartsch

    31 posts

    I have to interact with an external website who can only handle query urls.
    After removing the index.php with .htaccess, enabling “Force URL query strings” in admin, and allowing php on the template the following url seems to pass on the query to the iframe.

    url

    staging.xxx.se/lediga_jobb/jobbannons?jaid=1

    in the jobbannons template

    <?php
    $querystring = $_SERVER['QUERY_STRING']; //echo $querystring;
    parse_str($querystring); //echo $jaid;
    ?>
    <iframe width="600" height="900" src="xxx.xxx.eu/JobAd/Show?jaid=<?php echo urlencode($jaid) ?>">
    </iframe>

    It seems to work but am i overlooking something?
    Is there a better way to do it?

    greatful for replies

    Ralph Bartsch

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

ExpressionEngine News!

#eecms, #events, #releases