View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Validate form elements on checkout page

Thread began 6/29/2009 5:18 pm by grantr281040 | Last modified 9/29/2009 2:26 pm by grantr281040 | 1861 views | 13 replies


I thought it was just some sort of code that triggered a dialog box to pop up but looking at it now it appears to be a WA thing. As I was a very quick an easy thing...(for you anyway). I think this is it in my old coldfusion code in my checkout page. I guess I should stay away from spry right now as I know nothing about it.

How would I recreate this same type of scenario in php? Is there some sort of tutorial somewhere? Sorry for the questions but I'm not sure how to implement this.

I assume I do it on the checkout page and add a serverbehavior with the "+" button? and then to validation toolkit and then to server validations?

If that is correct....then it should be triggered by..."current page submit"?
"validation type" looks self explanitory and then
how can I determine the "server variable"?
and what goes in the big box with the "+" button above that the message that appears when it is an invalid entry?

"failure redirect" I assume should be the same checkout page? (Return to the same page to reenter the information?)

<form action="confirm_cc.cfm" method="post" name="ecart_checkout_form" onsubmit="WAValidateCC(document.ecart_checkout_form.cc_number,document.ecart_checkout_form.cc_number.value,'- Invalid credit card number','','4:51:52:53:54:55:34:37:6011:',document.ecart_checkout_form.cc_number,0,true);WAValidateEM(,,'- Invalid email address',,0,true);WAValidateRQ(document.ecart_checkout_form.cvv,'- CVV Entry is Required',document.ecart_checkout_form.cvv,0,false,'text');WAAlertErrors('The following errors were found','Correct invalid entries to continue',true,false);return document.MM_returnValue">



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