close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

I would like to compare / validate if the gift card number is valid

Thread began 1/20/2020 12:32 pm by Jonas | Last modified 3/02/2020 1:55 pm by Jonas | 281 views | 54 replies


Now that the gift card number verification works, I want to compare/verify the total amount the user creates by selecting the number of seats with the amount on the gift card. Before I take the step above, if you apologize.

Here I want to compare database row called "PresentkortSumma" with input field "Summa” from the form. And this is associated with the early gift card number "Presentkortnr".

I've made an attempt that seems to work in part. I have created a new "Like Entry" validation in Server Validations. There I chose: "Summa” as a variable, and then I chose: Same as: ”PresentkortSumma”.

This created the following code:
$WAFV_Errors .= WAValidateLE(((isset($_POST["Summa"]))?$_POST["Summa"]:"") . "",($rsPresentkort->getColumnVal("PresentkortSumma")) . "",true,2);

When I test this in the browser it is only accepted if both fields match "Presentkortnr", "Summa” - just as I wish. The problem is that I don't seem to be able to create an error message for this Like Entry validation. It is not in the Validation Show If list. Of course, I want an error message here as well.

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





Ease of use


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