close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Validation not working...

Thread began 9/15/2011 8:29 am by iainmacdonald331081 | Last modified 9/16/2011 2:13 pm by Jason Byrnes | 1279 views | 8 replies |

iainmacdonald331081

Validation not working...

Have been looking at this for a while and not sure where I'm going wrong.

I have a checkout and confirm page using eCart.

I've set up server side validation on the confirm page, and added Validation Show Ifs... back on the checkout page to display the errors.

What seems to be happening is that some sort of validation is occurring, as it always redirects back to the checkout page, even when the fields are filled in.

And no validation error messages are being displayed.

You can see what I mean here:

checkout_test.php

I've also attached the checkout and confirm pages.

Thanks for any help with this.

Attached Files
validation_test_files.zip
Sign in to reply to this post

Jason ByrnesWebAssist

on the confirm page, you have set the validation to validate the Session Variables.

you need to set the validation to validate the form elements.

In the Server Validation server behavior, click the lightning bolt next to Server Variable, expand the form collection (not the session collection) on the bindings panel, and select the form element.

Sign in to reply to this post

iainmacdonald331081

Thanks Jason - I did look for an alternative reference to the form variables, but am only seeing them under that session collection.

Have attached a few screenshots showing the options available when I click the lighting bolt in the Server Validation wizard.

Sign in to reply to this post

iainmacdonald331081

I also found sone pages from an old site that works, and at least spotted the difference in the code. I copied it in, and it half works in the page below.

The validation seems to work, in that the fields need to be filled, and it takes you to the confirm page, but no error messages are appearing on the checkout page.

Very possibly because its never good to copy and paste code like that, without doing it properly!

But for the reference here's the link, and attached the files.

checkout_new.php

Attached Files
validation_test_files_2.zip
Sign in to reply to this post

iainmacdonald331081

Think I forgot the screenshots mentioned above..

Sign in to reply to this post

iainmacdonald331081

This is them now...

Attached Files
variable_options.zip
Sign in to reply to this post

Jason ByrnesWebAssist

see this thread for details on setting up validation for the checkout page:

showthread.php?t=21834

Sign in to reply to this post

iainmacdonald331081

Thanks Jason - although I'm still missing something...

Followed that with the bindings > form data > checkout.php but wasn't sure what it did.

Although it did appear in the bindings list OK.

What I'm not sure of is how to set the values of the fields in the form to the Validated Field value. I tried dragging the field across from the bindings panel, but that looked like:

<?php echo((isset($_POST["firstname"]))?$_POST["firstname"]:"") ?>



When I think it should look like:

<?php echo(ValidatedField("confirm","firstname")) ?>



Have attached a couple of screen grabs, and the page file.

Attached Files
validation_files.zip
Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

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