Postal Code (1 Viewer)

mugman17

Registered User.
Local time
Today, 17:54
Joined
Nov 17, 2000
Messages
110
I have a form that will calculate a shipping cost based on a Canadian postal code. Right now, I have a text field where they can enter in the postal code. If the code is entered in without a space (ie T2V1R3 instead of T2V 1R3) it will not work, as it looks into the database for the rate. Is there a line of code I could create to make the space before it looks into the database for the rates?

I know I could split it up, which is what I might do. Just wanted to see if this is an option.

Thanks.
 

ColinEssex

Old registered user
Local time
Today, 17:54
Joined
Feb 22, 2002
Messages
9,116
Try using an input mask for the postcode field.

Col
 

Users who are viewing this thread

Top Bottom