Tech Details
Hi again Jason
I'm using Windows Vista Ultimate Edition with Dreamweaver CS3 with Form Builder 1.0.0
I did have validation toolkit installed before but I did uninstall it before I installed Form builder as per the instructions on the download page of Form Builder.
I tried uninstalling and reinstalling form builder as well (have also copied the files for the fix for While executing applyBehavior in WAFV_Required_C.htm... etc - although not relevant to this case as I'm using server validation).
I made a very simple form on a page called test.php and applied a "require/notblank/selection made server side validation. Once again a random number was added in this case 943... so I tried making another form and once again a number was added in, in this case 194... and it's always at the two places you pointed out ie $_SESSION['WAVT_test_194_Errors'] = ""; and PostResult($WAFV_Redirect,$WAFV_Errors,"test_194"); (I've supplied the full code below). I know the workaround to the problem is to search for this random number and delete it like you pointed out in your previous reply but for the life of me I don't know why it's added in.
<?php require_once("WA_ValidationToolkit/WAVT_Scripts_PHP.php"); ?>
<?php require_once("WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php"); ?>
<?php
if (($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos($_SERVER["HTTP_REFERER"], $_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"]) > 0) && isset($_POST)) {
$WAFV_Redirect = "";
$_SESSION['WAVT_test_194_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateRQ(((isset($_POST["textfield"]))?$_POST["textfield"]:"") . "",true,1);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"test_194");
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<p>
<input type="text" name="textfield" id="textfield" />
</p>
<p>
<input type="submit" name="button" id="button" value="Submit" />
</p>
</form>
</body>
</html>