I’m trying to use a form in an iframe in an EE template.
I have two files in a directory in root (directory is called /goldmine):
/goldmine/form.html
/goldmine/PHPmailer.phpWorks fine when calling the iframe src from a different server, but when I put /goldmine dir in the root of the EE site, I’m getting PHP errors when the action of the form, PHPmailer.php is processed.
Here’s my template:
{embed="layouts/index"}
{!-- PAGE CONTENT --}
{exp:stash:set parse_tags="yes"}
{exp:channel:entries limit="1" cache="no" refresh="60" disable="categories|category_fields|member_data|pagination"}
{!-- META --}
{stash:meta_title}{site_name}{/stash:meta_title}
{!-- TEMPLATE --}
{stash:page_wrapperclass}inner{/stash:page_wrapperclass}
{stash:page_title}{title}{/stash:page_title}d
{stash:template}site/index{/stash:template}
{stash:entry_id}{entry_id}{/stash:entry_id}
{stash:nav_classes}{/stash:nav_classes}
{!-- CONTENT --}
{stash:banner}
{header_banner_image}
{if content}
<div class="visual-section">
{image}
<div class="caption-area">
<div class="caption-holder">
<div class="caption-frame">
{content}
</div>
</div>
</div>
</div>
{/if}
{/header_banner_image}
{/stash:banner}
{stash:content}
<main id="main" role="main">
<div class="main-holder">
<section id="content">
<div class="text-holder">
<iframe src="{site_url}goldmine/goldmine.html" allowtransparency="true"
height="600" width="500" frameborder="0">
</iframe>
</div>
</section>
</div>
</main>
{/stash:content}
{/exp:channel:entries}
{/exp:stash:set}Any idea why this is happening on EE? Any idea how to resolve issue? Thanks in advance.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.