I have a parent window with the URL: http://example.com?val=test
In the iframe of that page, I need to get val to append to a link.
Currently I’m doing this in the iframe:
<?php
$val = $_GET['val'];
?>
<a href ="http://example.com/link.html?val=<?php echo $val ?>">Link</a>
The output contains extra / and ' like this:
http://example.com/link.html?val=\'test\'
Is there a way to do this properly?
Try this: