When you look at the code of the page (open the pages on your computer with notepad) do you have the php coding at the top of the page and after the closing form tag? It should look something like this
Code:
<?php error_reporting(0);if ( session_id() == "" ) session_start(); ?><?php
error_reporting(0);
$nof_suiteName="FormsHandler";
$nof_debug = "false";
$nof_langFile = "./scripts/FormsHandler_en.properties";
$nof_rootDir = ".";
$nof_scriptDir = "scripts";
?>
<?php
if (!file_exists($nof_langFile) || !file_exists($nof_rootDir . "/" . $nof_scriptDir . "/" . "nof_utils.inc.php")) {
if($nof_debug == "true") {
echo "<p><b>FormsHandler</b> components are not published. Please check your publish settings in Fusion and republish the site.</p>";
} else {
echo "<p>An error occured. Please contact the site administrator</p>
<p>Error code: 103</p>";
}
exit();
}
require_once($nof_rootDir . "/" . $nof_scriptDir . "/" . "nof_utils.inc.php");
$nof_resources->addFile($nof_langFile);
?>
<?php
require_once($nof_rootDir . "/" . $nof_scriptDir . "/" . "NOF_CaptchaProperties.class.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Home</title>
And the actual form code should have all of this php coding around it
Code:
<?php
if (NOF_fileExists("./scripts/fh_formshandler.php")) {
?>
<!-- <img id="NOFFormsHandler1" height="243" width="297" src="./icon_formshandlermodule.gif" border="0"> -->
<form accept-charset='UNKNOWN' method='POST' target='_self' action='./scripts/fh_formshandler.php' name='formshandler1272489180441' enctype='multipart/form-data'><input type="hidden" name="nof_scriptInterfaceFile" value="FormsHandler1272489198812.xml.php">
<input type="hidden" name="nof_debug" value="false">
<input type="hidden" name="nof_componentId" value="1272489180441">
<input type="hidden" name="nof_suiteID" value="1272489198812">
<input type="hidden" name="nof_componentName" value="formshandler">
<input type="hidden" name="nof_suiteName" value="FormsHandler">
<input type="hidden" name="nof_rootDir" value=".">
<input type="hidden" name="nof_scriptDir" value="scripts">
<input type="hidden" name="nof_langFile" value="FormsHandler_en.properties">
<table><tr><td nowrap><label for='name' class='nof_formsHandler_label'>Name</label></td><td nowrap><?php if(isset($_POST["1272489180441_name_errorimg"])) echo stripslashes($_POST["1272489180441_name_errorimg"]); ?></td><td><input class='nof_formsHandler_input_text' id='name' name='name' maxlength='30' value='' size='15' type='TEXT'></td></tr><tr><td nowrap><label for='email' class='nof_formsHandler_label'>Email</label></td><td nowrap><?php if(isset($_POST["1272489180441_email_errorimg"])) echo stripslashes($_POST["1272489180441_email_errorimg"]); ?></td><td><input class='nof_formsHandler_input_text' id='email' name='email' maxlength='30' value='' size='15' type='TEXT'></td></tr><tr><td nowrap><label for='comments' class='nof_formsHandler_label'>Comments</label></td><td nowrap><?php if(isset($_POST["1272489180441_comments_errorimg"])) echo stripslashes($_POST["1272489180441_comments_errorimg"]); ?></td><td><textarea id='comments' rows='5' class='nof_formsHandler_textarea' name='comments' cols='10'></textarea></td></tr><tr><td nowrap><label for='Submit' class='nof_formsHandler_label'></label></td><td nowrap><?php if(isset($_POST["1272489180441_Submit_errorimg"])) echo stripslashes($_POST["1272489180441_Submit_errorimg"]); ?></td><td><input class='nof_formsHandler_input_submit' id='Submit' name='Submit' maxlength='0' value='Submit' size='0' type='SUBMIT'></td></tr><tr><td colspan='3'><?php if(isset($_POST["1272489180441_errormessgs"])) echo stripslashes($_POST["1272489180441_errormessgs"]); ?></td></tr></table></form>
<?php
$nof_componentId="1272489180441";
if (NOF_fileExists("./scripts/fh_remembervalues.php")) include("./scripts/fh_remembervalues.php");
}
?>
If you don't see this start a new blank 2 page site (one page for the form handler and another page for the success page). Put the form handler component on the page with a simple form, then generate the pages and look at the form page with notepad. Do you get the PHP coding on a new blank site?
If you set the 2 pages to zero margins it will be easier to follow the coding