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=1in 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