Generated form displayed as html code

1 view
Skip to first unread message

sigmundfridge

unread,
Jul 25, 2008, 10:09:16 AM7/25/08
to Web Form Factory
Hi,

I think this may have been alluded to in a few other posts, but as I'm
a bit of a novice I wasn't sure.
I have followed the instructions as detailed on the site but when I go
to the address of the form I get this initial chunk of code followed
by the rest of the form code. It does something right if I open the
form in Dreamweaver (i.e. it displays the thanks page, with all the
correct formatting).

<?php
include_once("../configuration.php");
include_once("../wff_misc.php");
include_once("../objects/class.phpmailer.php");
if (sizeof($_POST) > 0 || sizeof($_FILES) > 0)
{
if ($GLOBALS['configuration']['email_

The full page can be found here...
http://www.chem.ucl.ac.uk/people/fellowship/forms/form.fellow_email.php

I've tried making a few changes suggested (downloading
class.phpmailer.php file and changing to ../objects/wff_misc.php) but
still it just displays the code. Any ideas what's happening?

I've also noticed that if I try and open it with IE (above is opened
with Firefox) then it asks if I want to open a php file. If I do it
send me to Dreamweaver.

Thanks for any help
Reply all
Reply to author
Forward
0 new messages