close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Form Builder Parse Error

Thread began 9/03/2009 4:50 am by mark.hay302689 | Last modified 9/08/2009 1:45 pm by Jason Byrnes | 4829 views | 6 replies |

mark.hay302689

Form Builder Parse Error

I've just got hold of Form Builder and immediately hit a problem. If I build a page vanilla or with template and just use the inbuilt forms e.g. registration simple or rich and simply finish there and then when I test it I get a parse error on line 12 - Checking the code line 11 is

WAValidateEM((isset($_POST["Registration_group_Email_address"])?$_POST["Registration_group_Email_address"]:"") . "",true,1)

line 12

WAValidateRQ((isset($_POST["Registration_group_Password"])?$_POST["Registration_group_Password"]:"") . "",true,2)

and so one dependant on the number of validations - I can spot that the ';' is missing from the end of the line and inserting it will fix the problem. But why is it missing in the generated code?

I can repeat this problem over and over. Anyone else having a problem or is this something local to my system?

Sign in to reply to this post

Jason ByrnesWebAssist

I'm not able to reproduce the problem using Dreamweaver CS4 on Windows Vista.

What Dreamweaver Version and OS are you using so I can try reproducing the issue ion a similar set up.

Sign in to reply to this post

mark.hay302689

Originally Said By: Jason Byrnes
  I'm not able to reproduce the problem using Dreamweaver CS4 on Windows Vista.

What Dreamweaver Version and OS are you using so I can try reproducing the issue ion a similar set up.  



Same as yourself

Sign in to reply to this post

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"); ?>

Sign in to reply to this post

Jason ByrnesWebAssist

Interesting, I'm going to open a support ticket so we can look into the problem a bit further. To view and edit your support ticket, log into your support history:


supporthistory.php

Sign in to reply to this post

openwavecomp001387788

Two plugins are conflicting with my menu dropdowns.

When they're activated, I am unable to see the submenu dropdowns unless I navigate to the top page of that group. Plugins are Eshop and Formbuilder.

Previously, I'd simply uninstalled the plugins, however they will be required on the site, so I need to find a way for the page menu dropdowns to display with those 2 plugins activated.

Sign in to reply to this post

Jason ByrnesWebAssist

You need to open a new ticket for this problem, this is not part of the problem this post was created form.

When posting your new ticket, please include screen shots demonstrating the problem or a link where we can see the problem occur.

Sign in to reply to this post

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...