Confirm Page not working - Post ID...

User 2892188 Photo


Registered User
5 posts

Hi,

after submit the form data is properly stored in the specified .csv and/or in the MySQL-database without any problem. But the confirm page does not work. The form disappears and the screen moves to the top. That´s it.

Surprisingly this behaviour is the same with Confirmation message, Redirect to another URL and Redirect to custom HTML page. I have looked into the code, but could not detect anything.

I am using HTML widgets to import the code, I guess you cannot escape from these containers? I have tried it with Goldfish (http://www.fishbeam.com) and with the old but still working iWeb - same behaviour. I do not understand how your php, html and javascript work together (I hope I do not need to understand this!).

Should I paste your code into blank pages? Any hints?

Thanks in advance
Axel
User 187934 Photo


Senior Advisor
20,181 posts

Hi Axel,
Try removing the script wrapping the iframe or placing the form html directly into your page.
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 2892188 Photo


Registered User
5 posts

Hi Eric,

thanks for your answer. Unfortunately, nothing helped so far. Even with a blank page, I am not sure, what HTML should I copy exactly.

I had some success when I change the action of the form directly to my new page, but then I do not get any results stored. May be the key to success is to understand the following file. It is not clear to me, what the actions really do:

<?php

$scriptpath = substr( $_SERVER['SCRIPT_FILENAME'], 0, -4 );
$paths = explode ( DIRECTORY_SEPARATOR , $scriptpath );
$myName = end($paths);
require $scriptpath . '/fbapp/php/config.inc.php';


if( strtoupper( $_SERVER['REQUEST_METHOD'] ) == 'POST' ) {

$ctl = new FormController();
$ctl->Dispatch();

} else {

if( ! isset( $_GET['action'] ) ) $myPage->ReportStats( 'NotifyFormView' );
}

ob_start();

$myPage->Show();
ob_end_flush();

?>

Axel
User 2699991 Photo


Registered User
4,782 posts
Online Now

Axel Besser wrote:
Hi,

after submit the form data is properly stored in the specified .csv and/or in the MySQL-database without any problem. But the confirm page does not work. The form disappears and the screen moves to the top. That´s it.

Surprisingly this behaviour is the same with Confirmation message, Redirect to another URL and Redirect to custom HTML page. I have looked into the code, but could not detect anything.

I am using HTML widgets to import the code, I guess you cannot escape from these containers? I have tried it with Goldfish (http://www.fishbeam.com) and with the old but still working iWeb - same behaviour. I do not understand how your php, html and javascript work together (I hope I do not need to understand this!).

Should I paste your code into blank pages? Any hints?

Thanks in advance
Axel


it would be better to see your WFB project upload it to dropbox and paste the link on this forum thread so we can take a look at the set up
Mastering The Understanding With Hands-On Learning
NEW TO "COFFEECUP SITE DESIGNER" FOUNDATION 6 FRAMEWORK?
STUCK ON SOMETHING?

LEARNING & UNDERSTANDING "THE HOW TO"? THE WHY'S & THE WHEREFORE'S?
WITH WAYAN'S STEP BY STEP TUTORIALS
Contact Me For One To One Assistance
https://alphathemes.coffeecup.com/forms … an%281%29/
User 187934 Photo


Senior Advisor
20,181 posts

The formbuilder will provide a script that looks similar to this.
<script type="text/javascript">document.write(unescape("%3Ciframe id=\"fb_iframe\" src=\"myformname.php" + window.location.search + "\" width=\"100%\" height=\"1166\"allowtransparency=\"true\" scrolling=\"no\" frameborder=\"0\"%3E&lt;a href=\"myformname.php\" title=\"myformname\"&gt;Check out my CoffeeCup Form&lt;/a&gt;%3C/iframe%3E"));</script>
<noscript>
<iframe height="800" style="border:none; background:transparent; overflow:hidden; width:100%;"
id="fb_iframe" src="myformname/myformname.html">
<a href="myformname.php" title="myformname">Check out my CoffeeCup Form</a>
</iframe>
</noscript>


Change it to look like this.
<iframe height="800" style="border:none; background:transparent; overflow:hidden; width:100%;"
id="fb_iframe" src="myformname/myformname.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 2892188 Photo


Registered User
5 posts

Thanks a lot so far! In the meantime I have seen, that the PHP of my server is still at 5.2.6, so I hope that an upgrade to 5.3 or above will solve the problem. It is my fault not to check the server requirements before, but I did not take into account the possibility of such an old php version. After upgrading I will see further.

Have a nice weekend!
Axel
User 2892188 Photo


Registered User
5 posts

Hi,

now after upgrading the server software everything works very well. Many thanks for a great piece of software – I really like it – and for your help!

Axel

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.