WordPress.org

Ready to get started?Download WordPress

Forums

Insert PHP
[resolved] Can it be done? (4 posts)

  1. lwall
    Member
    Posted 10 months ago #

    Hi Bill,

    I have been looking for a plugin like yours. I am trying to pass parameters from a (post method) form among pages to an iframe.

    <iframe id="rpt01" name="rpt01" src="http://domain/query.php?p1=[insert_php]echo $p1;[/insert_php]&p2=[insert_php]echo $p2;[/insert_php]&ui=[insert_php] echo $ui;[/insert_php]"></iframe>

    p1 and p2 are the parameters.

    Can it be done?

    http://wordpress.org/plugins/insert-php/

  2. WillBontrager
    Member
    Plugin Author

    Posted 10 months ago #

    Hi lwall,

    The code processed with the plugin needs to be complete in itself. Outside variables and functions won't be accessed.

    However, global variables can be accessed.

    Perhaps something like this will work:

    <iframe id="rpt01" name="rpt01" src="http://domain/query.php?p1=[insert_php]echo($_POST['p1']);[/insert_php]&p2=[insert_php]echo($_POST['p2']);[/insert_php]&ui=[insert_php]echo($_POST['ui']);[/insert_php]"></iframe>

    Will

  3. lwall
    Member
    Posted 10 months ago #

    Thanks, Bill!!!

    It worked like a charm.

  4. WillBontrager
    Member
    Plugin Author

    Posted 10 months ago #

    Cool. Glad of it :)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags