Hi,
I am having some trouble with some code I am trying to implement. Any help would be much appreciated.
In a database table I have 2 fields:
- postcode
- area
Every postcode is related to an area.
On a HTML form I have an input field. Users enter their postcode into this field.
My question: what is the best/safest/easiest method, when a user has entered their postcode, to assign it it’s area?
For example:
- User enters their postcode
- onSubmit the postcode is assigned an area. This can be in a hidden field.
Cheers in advance.