passing php vars in iframe

This section is for posting questions which are not directly related to WYSIWYG Web Builder.
Examples of off topics: web server configuration, hosting, programming related questions, third party scripts.

Note that these questions will generally not be answered by the administrators of this forum.
Post Reply
Posts: 34
Joined: Thu Apr 18, 2019 8:26 pm

passing php vars in iframe

Post by harvillo » Fri Nov 15, 2019 4:57 pm


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=''$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.

User avatar
Posts: 20945
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe

Re: passing php vars in iframe

Post by Pablo » Fri Nov 15, 2019 6:02 pm

You can insert custom code via the HTML object.
Any code that will work somewhere else will also work in WWB.

Post Reply