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


eCart - "invalid Zip code"

Thread began 3/12/2011 5:51 pm by thetypehouse | Last modified 3/14/2011 12:02 pm by thetypehouse | 1188 views | 4 replies |


eCart - "invalid Zip code"


Not sure if this is in the right forum - if not, apologies!

On submitting the checkout page for this site
I'm getting a Zip Code validation problem. I've tested both UK and USA addresses.

This is a little worrying as the site has just gone live.
I did extensive testing before the site went live, and everything was working fine. I launched it this evening (this simply involved moving the domain to the new hosting package where the files had been uploaded for testing purposes), and processed another order (just to make sure!) and discovered the error.

I'd be grateful if you could help me find out what's wrong, before someone tries to place an order and fails at this hurdle.

I've attached the checkout.php page for info.

The page no longer appears to validate, although I'm sure it did previously. Maybe the validator is still looking at the old file location...

Many thanks in advance!

Attached Files
Sign in to reply to this post


Update: The page now validates XHTML 1.0 Transitional, as I knew it should.

But still no joy with the OP issue, i.e. why the Zip Code entry doesn't pass server validation.

Sign in to reply to this post


I've removed the section "WAValidateZC(document.getElementById('ecart_checkout_form').firstname,'- Invalid zip code',true,true,true,true,'',document.getElementById('ecart_checkout_form').firstname,0,true);" from the form, in order to allow the checkout form to function.

I'd still like to get this working properly though.

Any ideas?

Sign in to reply to this post

Jason ByrnesWebAssist

this code:
WAValidateZC(document.getElementById('ecart_check out_form').firstname,'- Invalid zip code',true,true,true,true,'',document.getElementBy Id('ecart_checkout_form').firstname,0,true);

is applying zip code validation to the firstname form field, not the zip code form field.

Sign in to reply to this post


Thanks, Jason.

I'd seen that the code referred to firstname, but wasn't sure about what to do, and didn't want to break it any more :-)

It now works fine. And I've learned some more too!

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





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