Restoring a default drop down value
Posted on 2012-03-18
I have some PHP code that stores a buyer's information in a data base at the time of the sale. At that time I also store a cookie down in the browser that contains the orderId. When the buyer returns to the site I see the cookie, pull the buyer's info from the database, using that orderId, and I prepopulate the pay form for them.
The only problem is that the State/Territory is chosen from a drop down select menu on the pay form that has about 175 options. I can tell from the database that the buyer is from, say Arizona, but there doesn't seem to be any way to set the drop down select element to show that value. I'm just wonder if there is and I'm missing it.