close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Server Validations losing $_POST values and

Thread began 12/06/2019 1:24 pm by Steve | Last modified 12/09/2019 11:15 am by Steve | 1150 views | 23 replies

Steve

I've made solid progress and have the following to report.
The main problems come from creating server-side validation and then updating or adding to the values/fields being validated.

What happens is that the numeration for the individual identifiers gets jacked up:
Non-sequential additions.
Added spaces in the naming numerations and as mentioned, one time there was no numerical numeration appended at all.

The attached screenshots show how DW and the extension created the code as well as the now working instance where hand-coded changes made things uniform.

For instance, in the following example we see a space inserted before the numeral 4. And the second line is numerated as #2 though it should have been a sequential #5

$WAFV_Errors .= WAValidateRQ(((isset($_POST["dateDepart"])) ? $_POST["dateDepart"] : "") . "", false, 4);
$WAFV_Errors .= WAValidateRQ(((isset($_POST["persons-qty"]))?$_POST["persons-qty"]:"") . "",false,2);


The other screenshot shows the page having met all server-side variables, and now successfully showing a summary of the costs, but losing all it's prior populated field values as the behaviour has successfully processed. So I may need to move to saving the field values as $_SESSIONs or remove the code from wavt_validatedform_php.php or wavt_scripts_php.php that is clearing those prior useful values (example: <?php echo(isset($_POST["fail"])?$_POST["contactName"]:ValidatedField("ratesandavailabilityx_815", "contactName")); ?>).

Lastly and probably a DW issue, when updating, there are multiple cases of the require_once files:

<?php require_once("webassist/form_validations/wavt_scripts_php.php"); ?>
<?php require_once("webassist/form_validations/wavt_validatedform_php.php"); ?>
<?php require_once("webassist/form_validations/wavt_validatedform_php.php"); ?>

Any of these examples where purely DW and Server Validation Behaviour generated.
Latest dev iteration is here: https://hotellecabanon.com/rates-and-availabilityy

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