Page 1 of 1

passing php vars in iframe

Posted: Fri Nov 15, 2019 4:57 pm
by harvillo
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.

Re: passing php vars in iframe

Posted: Fri Nov 15, 2019 6:02 pm
by Pablo
You can insert custom code via the HTML object.
Any code that will work somewhere else will also work in WWB.