Confirm Page not working

User 2892188 Photo


Registered User
4 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
18,050 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.

Here's my S-Drive site with
examples of what can be accomplished in VSD.
http://progrower.coffeecup.com/
Here's my CoffeeCup SCCP Shop with examples of what can be done.
http://progrower.coffeecup.com/shop/
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 personnel site used for testing and as an easy way to share photos.(RLM imported to RSD)
http://ericrohloff.com
http://ericrohloff.com/property/
User 2892188 Photo


Registered User
4 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
1,696 posts

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
The Sky Is A big Empty Space : But There Is No Room For Error
website https://rsdtutorials.com
User 187934 Photo


Senior Advisor
18,050 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.

Here's my S-Drive site with
examples of what can be accomplished in VSD.
http://progrower.coffeecup.com/
Here's my CoffeeCup SCCP Shop with examples of what can be done.
http://progrower.coffeecup.com/shop/
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 personnel site used for testing and as an easy way to share photos.(RLM imported to RSD)
http://ericrohloff.com
http://ericrohloff.com/property/
User 2892188 Photo


Registered User
4 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
4 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.