emergencyplan
Technical User
Hello,
i have a form where the user enters a post code to search for an address. I am trying to ensure the postcode always has a space between in the incode and outcode.
I have achieved some success when the entire postcode is entered (e.g MK452RS becomes MK45 2RS and NG76AS becomes NG7 6AS), but I have problems when the user enters only part of a postcode e.g. MK452 or MK45 2 and similarly NG76 (NG7 6). The user will always enter at least the incode and the first number of the outcode, if not more.
Does anyone have any ideas how to solve this problem?
Thanks in advance
Laurence
i have a form where the user enters a post code to search for an address. I am trying to ensure the postcode always has a space between in the incode and outcode.
I have achieved some success when the entire postcode is entered (e.g MK452RS becomes MK45 2RS and NG76AS becomes NG7 6AS), but I have problems when the user enters only part of a postcode e.g. MK452 or MK45 2 and similarly NG76 (NG7 6). The user will always enter at least the incode and the first number of the outcode, if not more.
Does anyone have any ideas how to solve this problem?
Thanks in advance
Laurence