Validation Bug Found
CS4 / OSX 10.5.8 / CSS Form Builder 1.0.0
Applying server side validation to a custom form generates the following code:
<?php
if (isset($_POST["addnow"])) {
$WAFV_Redirect = "";
$_SESSION['WAVT_index_666_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
$WAFV_Errors .= WAValidateRQ(((isset($_POST["title"]))?$_POST["title"]:"") . "",true,1);
$WAFV_Errors .= WAValidateAN(((isset($_POST["sortorder"]))?$_POST["sortorder"]:"") . "",false,false,true,false,"",true,2);
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"index_666");
}
}
?>
note the _666 which has been added to the name of the page. Now when I apply the validation entry to the form field to retain information after validation fails I get this code:
<input type="text" name="title" id="title" value="<?php echo(ValidatedField("index","S_title")) ?>" />
note that extension has not inserted the _666 after the file name so the info will never show.