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
harvillo
 
 
Posts: 40
Joined: Thu Apr 18, 2019 8:26 pm

passing php vars in iframe

Post 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.
User avatar
Pablo
 
Posts: 21577
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: passing php vars in iframe

Post by Pablo »

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