I've attached a plain simple form using no more than the login choice form option -
here's the code (first 50 lines):
<?php require_once("../../WA_ValidationToolkit/WAVT_Scripts_PHP.php"); ?>
<?php require_once("../../WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php"); ?>
<?php
if (isset($_POST["Securelogin_submit"]) && !isset($_GET["invalid"])) {
$WAFV_Redirect = "test.php?invalid=true";
$_SESSION['WAVT_test_Errors'] = "";
if ($WAFV_Redirect == "") {
$WAFV_Redirect = $_SERVER["PHP_SELF"];
}
$WAFV_Errors = "";
WAValidateEM((isset($_POST["Log_in_group_Email_address"])?$_POST["Log_in_group_Email_address"]:"") . "",true,1)
WAValidateRQ((isset($_POST["Log_in_group_Password"])?$_POST["Log_in_group_Password"]:"") . "",true,2)
WAValidateLE((strtolower(isset($_POST["Log_in_group_Security_code"])?$_POST["Log_in_group_Security_code"]:"")) . "",((isset($_SESSION["captcha_Log_in_group_Security_code"]))?strtolower($_SESSION["captcha_Log_in_group_Security_code"]):"") . "",true,3)
WAValidateLE((isset($_POST["Log_in_group_nbsp"])?$_POST["Log_in_group_nbsp"]:"") . "",((isset($_SESSION["random_answer"]))?strtolower($_SESSION["random_answer"]):"") . "",true,4)
WAValidateRX((isset($_POST["HiddenFields_fields"])?$_POST["HiddenFields_fields"]:"") . "","/.*/",false,5)
if ($WAFV_Errors != "") {
PostResult($WAFV_Redirect,$WAFV_Errors,"test");
}
}
?>
<!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>
<link href="../../SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
<script src="../../SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<script src="../../CSSFormBuilder/WA_ServerValidation.js" type="text/javascript"></script>
<link href="../../SpryAssets/SpryValidationPassword.css" rel="stylesheet" type="text/css" />
<script src="../../SpryAssets/SpryValidationPassword.js" type="text/javascript"></script>
<link href="../../CSSFormBuilder/FD_NewFromBlank_Default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form class="NewFromBlank_Default" id="Securelogin_NewFromBlank_Default" name="Securelogin_NewFromBlank_Default" method="post" action="test.php">
<!--
WebAssist CSS Form Builder - Form v1
CC: Log in
CP: Secure log in
TC: <New From Blank>
TP: Default
-->
<ul class="NewFromBlank_Default">
<li>
<fieldset class="NewFromBlank_Default" id="Log_in">
<legend class="groupHeader">Log in</legend>
<ul class="formList">
<li class="formItem"> <span class="fieldsetDescription"> Required * </span> </li>
<li class="formItem">
<div class="formGroup">
<div class="lineGroup">
<div class="fullColumnGroup">
<label for="Log_in_group_Email_address" class="sublabel" > Email address<span class="requiredIndicator"> *</span></label>
<div class="errorGroup">
<div class="fieldPair">
<div class="fieldGroup"> <span id="Log_in_group_Email_address_Spry">
<input id="Log_in_group_Email_address" name="Log_in_group_Email_address" type="text" value="<?php echo((isset($_GET["invalid"])?ValidatedField("test","Log_in_group_Email_address"):"")); ?>" class="formTextfield_Large" tabindex="1" onblur="hideServerError('Log_in_group_Email_address_ServerError');"/>
<span class="textfieldInvalidFormatMsg">Invalid format.</span><span class="textfieldRequiredMsg">Please enter your email address.</span> </span>
<?php
if (ValidatedField('test','test')) {
if ((strpos((",".ValidatedField("test","test").","), "," . "1" . ",") !== false || "1" == "")) {
if (!(false)) {
?>
<span class="serverInvalidState" id="Log_in_group_Email_address_ServerError">Please enter your email address.</span>
<?php //WAFV_Conditional test.php test(1:)
}
}
}?>
</div>
</div>
</div>
</div>
</div>
<div class="lineGroup">
<div class="fullColumnGroup">
<label for="Log_in_group_Password" class="sublabel" > Password<span class="requiredIndicator"> *</span></label>
<div class="errorGroup">
<div class="fieldPair">
<div class="fieldGroup"> <span id="Log_in_group_Password_Spry">
<input id="Log_in_group_Password" name="Log_in_group_Password" type="password" value="<?php echo((isset($_GET["invalid"])?ValidatedField("test","Log_in_group_Password"):"")); ?>" class="formPasswordfield_Large" tabindex="2" onblur="hideServerError('Log_in_group_Password_ServerError');"/>
<span class="passwordRequiredMsg">Please enter a password.</span> </span>
<?php
if (ValidatedField('test','test')) {
if ((strpos((",".ValidatedField("test","test").","), "," . "2" . ",") !== false || "2" == "")) {
if (!(false)) {
?>
<span class="serverInvalidState" id="Log_in_group_Password_ServerError">Please enter a password.</span>
<?php //WAFV_Conditional test.php test(2:)
}
}
}?>
</div>
</div>
</div>
</div>
</div>
</div>
</li>
<li class="formItem">
<div class="formGroup">
<div class="lineGroup">
<div class="columnGroup">
<div class="columnGroup">
<label for="Log_in_group_Security_code" class="sublabel" > </label>
<div class="errorGroup">
<div class="fieldPair">
<div class="fieldGroup"> <img src="../../WA_ValidationToolkit/WAVT_CaptchaSecurityImages.php?field=Log_in_group_Security_code&font=Fonts/MOM_T___.TTF" alt="Security Code" class="Captcha" /> </div>
</div>
</div>
</div>
<div class="columnGroup" style="clear:left;">
<label for="Log_in_group_Security_code" class="sublabel" > Security code<span class="requiredIndicator"> *</span></label>
<div class="errorGroup">
<div class="fieldPair">
<div class="fieldGroup"> <span id="Log_in_group_Security_code_Spry">
<input id="Log_in_group_Security_code" name="Log_in_group_Security_code" type="text" value="" class="formTextfield_Large" tabindex="3" onblur="hideServerError('Log_in_group_Security_code_ServerError');"/>
<span class="textfieldRequiredMsg">Entered text does not match; please try again</span> </span>
<?php
if (ValidatedField('test','test')) {
if ((strpos((",".ValidatedField("test","test").","), "," . "3" . ",") !== false || "3" == "")) {
if (!(false)) {
?>
<span class="serverInvalidState" id="Log_in_group_Security_code_ServerError">Entered text does not match; please try again</span>
<?php //WAFV_Conditional test.php test(3:)
}
}
}?>
</div>
</div>
</div>
</div>
</div>
<div class="wideColumnGroup">
<div class="wideColumnGroup">
<label for="Log_in_group_nbsp" class="sublabel" > </label>
<div class="errorGroup">
<div class="fieldPair">
<div class="fieldGroup"> <span class="precedingText">
<?php require_once("../../WA_ValidationToolkit/WAVT_CaptchaSecurityQuestion.php"); ?>