I have a very small, but annoying issue. I have the following standard fields in a form:
Address 1
Address 2
Address 3
Town
County
Post Code
I also have another field called FULL ADDRESS, which combines the above fields into 1 text box. I need to separate each line with a comma, so that it looks like this in the FULL ADDRESS text box. For example:
313 Broadwater Close, Hitchin, Herts SG4 2PP
Any ideas on how I would code this? Don't forget that not all users will necessarily know the town/county or have an Address 2/Address 3. I have tried but I can't seem to get the code to not include an extra comma if details are missing:
313 Broadwater Close,, Herts SG4 2PP
Any help would be very much appreciated. Thanks....
Address 1
Address 2
Address 3
Town
County
Post Code
I also have another field called FULL ADDRESS, which combines the above fields into 1 text box. I need to separate each line with a comma, so that it looks like this in the FULL ADDRESS text box. For example:
313 Broadwater Close, Hitchin, Herts SG4 2PP
Any ideas on how I would code this? Don't forget that not all users will necessarily know the town/county or have an Address 2/Address 3. I have tried but I can't seem to get the code to not include an extra comma if details are missing:
313 Broadwater Close,, Herts SG4 2PP
Any help would be very much appreciated. Thanks....