Hiya,
I have a simple shopping cart, and as part of the checkout process I want to give the users the option to auto complete the shipping address of the form.
For example, if the user has already purchased something from the site, and provided their shipping address, then that address is stored in the database. When the user comes to purchase something else i'd like an option (maybe a tick box) to appear to let them use their previously stored address. When they tick the box to do so, i'd like the details (address line 1, 2, postcode, etc) to automatically go into the relevant fields in the form... then they can just fill out the rest of the fields.
I'm aware that Javascript is probably the best method but after searching around the Internet I can't really find an auto-fill method that extracts the data from the database.
I'd just like a bit of help if possible please. Am I going about this the easiest way?
Thanks a lot! :queasy: