Hi everyone -
I am fairly new to PHP. When I create a form for registration I have a huge list for countries and states, each with its code in the value field.
When users go to edit their address I want to initially select the state and country they selected, I have dont this in the past by drawing the info drom the database with an if statement.
My question is, when you create forms for your sites, do you have countries and states taken from a db or are they there in the html - I would love to have it in the db but I always think of queries of slowing down everything and it would also be VERY time consuming.
Just wondering what your thoughts on the matter are.
I am fairly new to PHP. When I create a form for registration I have a huge list for countries and states, each with its code in the value field.
When users go to edit their address I want to initially select the state and country they selected, I have dont this in the past by drawing the info drom the database with an if statement.
My question is, when you create forms for your sites, do you have countries and states taken from a db or are they there in the html - I would love to have it in the db but I always think of queries of slowing down everything and it would also be VERY time consuming.
Just wondering what your thoughts on the matter are.