Iframe & php - Post ID 242177

User 574966 Photo


Registered User
27 posts

I am confused. I want to run some simple php commands inside my form. Should be easy right?

I made the form & exported for manual setup.

I modified the .html form file to include my php & tested it by loading it directly - all is good.
I created a new file (also .php due to a couple of items) to put the iframe call remembering to change the form file to .php rather than .html. - No go!
Figured I made a mistake so looked around for a while - cannot find anything. So go back to basics. Renamed my .php form file to a .html and called it from the file I created to hold the iframe call. The form renders (admittedly ugly due to my php no longer operational). I now know all is good. Put the call & the form back to .php and again no form renders.

Any one got any ideas?
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

Are you using the iframe snippet as supplied by the form builder? If you are did you change the myformname.html to .php
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 574966 Photo


Registered User
27 posts

yep - changed it.
User 574966 Photo


Registered User
27 posts

D'ohhh - my bad I think. This is the code that is due to be in the calling file. The afterbooking.php shown in BOLD seems to need to be afterbooking\afterbooking.php

<script type="text/javascript">document.write(unescape("%3Ciframe id=\"fb_iframe\" src=\"afterbooking.php" + window.location.search + "\" width=\"100%\" height=\"5164\"allowtransparency=\"true\" scrolling=\"no\" frameborder=\"0\"%3E&lt;a href=\"afterbooking.php\" title=\"afterbooking\"&gt;Check out my CoffeeCup Form&lt;/a&gt;%3C/iframe%3E"));</script>
<noscript>
<iframe width="100%" height="5164" style="border:none; background:transparent; overflow:hidden;"
id="fb_iframe" src="afterbooking/afterbooking.html">
&lt;a href="afterbooking.php" title="afterbooking"&gt;Check out my CoffeeCup
Form&lt;/a&gt;
</iframe>
</noscript>
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

When using customizations in the form builder it's usually necessary to remove the script wrapping the iframe code.
<iframe width="100%" height="5164" style="border:none; background:transparent; overflow:hidden;"
id="fb_iframe" src="afterbooking/afterbooking.html"></iframe>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 574966 Photo


Registered User
27 posts

Thanks Eric. I have commented the script out and all works well. What role does that portion generally perform?
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

The noscript tag serves up different content for users that have javascript disabled.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.