We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Processing form using iframe with form code and phpmailer in root directory

Development and Programming

mc2design's avatar
mc2design
5 posts
10 years ago
mc2design's avatar mc2design

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.php

Works 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.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.