I have a form with select tags for date of birth. The day and month default to the first options (the 1st, and January), which is fine. For the year, I use selected="selected" for 1975, since this is the average age for my users.
What I want to be able to do is to overwrite this default year value by passing the variable in a URL.
For example:
www.domain.com?dob_day=14&dob_month=july&dob_year=1980
The reason being is that I want to send an email and pre-populate the fields they filled out.
So what's happening right now when I look at the source code is both the year 1975 is selected, and the year passed in the variable.
What would be the best way to achieve the above?
Thank you very much.