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.
I know I could split it up, which is what I might do. Just wanted to see if this is an option.
Thanks.