Troubleshooting forms on website -...

User 2329898 Photo


Registered User
3 posts

I'm having troubles getting the forms to work on one website. If I fill out the form in IE it prompts me to save the php file. If I fill it out in Chrome, it returns the php code I pasted below. I've gotten these forms to work without any issues on many other websites. Not sure why this one is having issues. I have 5 forms on that I need to get working. They all do the same thing. If you want to see it live here's the link to the form: http://tiehengroup.com/contact-property-manager.html. Thank you in advance for your help.



<?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' ) {

include 'fbapp/php/formcontroller.cls.php';

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

} else {

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

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

?>
User 187934 Photo


Senior Advisor
20,271 posts

What version of php are your running?
http://tiehengroup.com/tiehen-contact-p … ertest.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 464893 Photo


Ambassador
1,611 posts

I'm having troubles getting the forms to work on one website. If I fill out the form in IE it prompts me to save the php file. If I fill it out in Chrome, it returns the php code I pasted below


I can see the form under contact, Is it fixed now, I get a 404 on the main page
The Guy from OZ


User 2329898 Photo


Registered User
3 posts

Looks like two versions are installed. Could that be the problem?

php
Version 4.4.9
PHP4 scripting language

php5
Version 5.3.2
PHP5 scripting language

User 187934 Photo


Senior Advisor
20,271 posts

I would probably get rid of the 4.4.9. Did you contact your host? I would ask how two version got on there. I have never seen two versions installed at once. I did a little Googling and it is not the norm.
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 2329898 Photo


Registered User
3 posts

I had the hosting provider uninstall the old version. All works great now. Thank you for your help!
User 187934 Photo


Senior Advisor
20,271 posts

Awesome! Have fun with your new discover.:)
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 2778342 Photo


Registered User
1 post

Hello.
My form is not displaying. I am developing my site using XAMPP stack. My web-server is Apache. I am developing on my local machine for later deployment to my remote server. My browser is Firefox. I am using PHP 5.6.3 -- any ideas on why my form does not appear?
Attachments:
User 187934 Photo


Senior Advisor
20,271 posts

Hi Edward,
Try remove the script wrapping the iframe code.
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.