passing php vars in iframe
Posted: Fri Nov 15, 2019 4:57 pm
Pablo,
I have a page where I can pass a var: (page.php?string=somestring)
All good but I'd like to iframe to that page but I'm not sure if I can pass the variable from the iframe url so it's dynamic. Make sense?
If I hard coded it would be something like:
$var = $_GET['string'];
echo "<iframe src='sitename.com/page.php?string='$var' width='100%' scrolling='vertical'></iframe>";
I know webbuilder isn't an editor...but I wanted to check and see if it could be done within the software.
I hope this makes sense.
I have a page where I can pass a var: (page.php?string=somestring)
All good but I'd like to iframe to that page but I'm not sure if I can pass the variable from the iframe url so it's dynamic. Make sense?
If I hard coded it would be something like:
$var = $_GET['string'];
echo "<iframe src='sitename.com/page.php?string='$var' width='100%' scrolling='vertical'></iframe>";
I know webbuilder isn't an editor...but I wanted to check and see if it could be done within the software.
I hope this makes sense.