• I’m using the following to generate an iFrame:

    [iframe https://secure.lifelinkcorp.com/vtWebNet/mytermbroker?usr=jgblossom&[email protected]&cid=g6GHI7omqZdb01gt 978 978]

    When the page renders, the ampersands are being encoded generating the src as:

    https://secure.lifelinkcorp.com/vtWebNet/mytermbroker?usr=jgblossom&[email protected]&cid=g6GHI7omqZdb01gt

    This is breaking the form which is being referenced in the iFrame. I need to have the ampersand NOT encoded to properly pass paramters to the form. How can I do this?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter lsilver

    (@lsilver)

    The second code listed is re-encoding the ampersand so it seems like it’s identical to the first. It isn’t. instead of the & it’s using the encoded %38, which is causing the passthrough variables to break.

    Thread Starter lsilver

    (@lsilver)

    Anybody?

    The ampersands should be encoded @amp; as in this, [iframe https://secure.lifelinkcorp.com/vtWebNet/mytermbroker?usr=jgblossom&[email protected]&cid=g6GHI7omqZdb01gt 978 978] which seems to work with the variables.

    Thread Starter lsilver

    (@lsilver)

    That’s what I’m doing:

    [iframe https://secure.lifelinkcorp.com/vtWebNet/mytermbroker?usr=test&[email protected]&cid=12345 978 978]

    But when I view the code on the renderred page it is:

    "<iframe class="" src="https://secure.lifelinkcorp.com/vtWebNet/mytermbroker?usr=test&[email protected]&cid=abc" style="width: 978px; height: 978px; " frameborder="0" scrolling="" onload="scro11me(this)"></iframe>"

    Ugh pretty impossible to work in this forum when code is re-encoded like it is. I’m using the correct code with &.

    An encoded ampersand in a url should work without any problem.

    Thread Starter lsilver

    (@lsilver)

    That’s what I thought as well. But things are just not working correctly.

    If I use the URL with just an &, it re-encodes it using & # 0 3 8 ; (no spaces).

    If I use & a m p ;, it keeps it as & a m p ;

    I’ve tried other combinations as well but it will never simply encode using the & (e.g. &eml=xyz.com&cid=abc).

    Use & a m p ; in the url.

    Thread Starter lsilver

    (@lsilver)

    If I use & a m p ; (no spaces) in the URL, it keeps it as & a m p ; when the page is rendered. But that doesn’t work in my case. The url needs to pass parameters and it must include a “&” specifically. The encoding of ampersand (E.g. & a m p ?? breaks the parameter.

    Page is at https://blossomwm.com/term-life-insurance.

    Thread Starter lsilver

    (@lsilver)

    I’ve tried playing with some PHP and using a different iFrames plugin but the problem is still there.

    If the application at the other end will not accept an encoded ampersand, then it is at fault. The encoding isn’t specific to WP. It’s standard practice across the Web.

    Thread Starter lsilver

    (@lsilver)

    Regardless, it’s still an issue. I was able to solve the problem in Drupal so hoping there’s a way in WP as well.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Encoding of Ampersand in iFrame’ is closed to new replies.