WordPress.org

Forums

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

  1. lwall
    Member
    Posted 1 year 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 1 year 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 1 year ago #

    Thanks, Bill!!!

    It worked like a charm.

  4. WillBontrager
    Member
    Plugin Author

    Posted 1 year ago #

    Cool. Glad of it :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Insert PHP
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags