Form results when using redirect URL...

User 345797 Photo


Registered User
48 posts

I noticed that the lunarpages AddHandler application/x-httpd-php53 .html .htm does not contain the .php in it. When I put it in and tried to access page1.html, it downloaded the file instead of displaying it. When I took it out it displayed the page1.html. Is that the problem? How would I fix it?
User 187934 Photo


Senior Advisor
20,200 posts

Change your file names 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 345797 Photo


Registered User
48 posts

Hi Eric,
Thank Eric for your suggestions. I was able to finally figure it out, partly through your help. The problem was that Form Builder wants you to put the following code into an HTML field on your Visual Site Designer page:
<script type="text/javascript">document.write(unescape("%3Ciframe id=\"fb_iframe\" src=\"ProgramRegistration.php" + window.location.search + "\" width=\"100%\" height=\"2034\"allowtransparency=\"true\" scrolling=\"no\" frameborder=\"0\"%3E&lt;a href=\"ProgramRegistration.php\" title=\"ProgramRegistration\"&gt;Check out my CoffeeCup Form&lt;/a&gt;%3C/iframe%3E"));</script>
<noscript>
<iframe height="2034" style="border:none; background:transparent; overflow:hidden; width:100%;"
id="fb_iframe" src="ProgramRegistration/ProgramRegistration.html">
<a href="ProgramRegistration.php" title="ProgramRegistration">Check out my CoffeeCup Form</a>
</iframe>
When I did that it would run the programregistration.html by calling the programregistration.php (which displays the programregistration.htlm but it would not recognize any of the php that I had put into ProgramRegistration.html. BUT when I got rid of the <script ... </script> choice and went only with the non script choice it worked. Of course I made a couple of other changes.
I added the following in the php file used to process the form on Page1.html:
<?php
session_start();
$_SESSION['FirstName'] = $_POST['FirstName'];
$_SESSION['LastName']=$_POST['LastName'];
?>

at the top

Then in programregistration.html I added at the top

<?php
session_start();
$LastName=$_SESSION['LastName'];
$FirstName=$_SESSION['FirstName'];
?>

and then for the input box had value = "<?php echo $LastName;?>"

And it worked just fine.

Do you have any idea why WFB wants to call the programregistration.php for iframe source? And why it would not process the file with the php I added?

Thanks again Eric.
User 187934 Photo


Senior Advisor
20,200 posts

Great! Yea I remove the script from most of my projects just make sure there are no conflicts.
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.