View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Form Builder Parse Error

Thread began 9/03/2009 7:50 am by mark.hay302689 | Last modified 9/08/2009 4:45 pm by mark.hay302689 | 2026 views | 6 replies

mark.hay302689

Plain File

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">&nbsp;*</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">&nbsp;*</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" >&nbsp;</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">&nbsp;*</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" >&nbsp;</label>
<div class="errorGroup">
<div class="fieldPair">
<div class="fieldGroup"> <span class="precedingText">
<?php require_once("../../WA_ValidationToolkit/WAVT_CaptchaSecurityQuestion.php"); ?>

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...