Results 1 to 5 of 5

Thread: Location: Pull Down Select Box

  1. #1
    Thread Starter
    Junior Member
    Not a Verified Customer
    Heroes's Avatar
    Join Date
    May 2009
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Location: Pull Down Select Box

    Is it possible to create a list of locations and for the users to just pick a specific location (list of states or city) via a pull down select box?

    alabama
    alaska
    etc.
    etc..
    etc...

    This will then prevent users from entering all sorts of abbreviations or spelling variations for one state - like california, cali, calif, ca - which basically only refer to one place - claifornia.

    This will make the site much neater and organised. More professional and searching locations much easier.
    Hopefully, as the theme matures, creating an advance search for all classifieds listings by a specific location will be possible.

  2. #2
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: Location: Pull Down Select Box

    Yes, you could just convert the current location field into a dropdown box with a pre-defined set of options. Just make sure you keep the field name the same otherwise it won't save properly.

  3. #3
    Thread Starter
    Junior Member
    Not a Verified Customer
    Heroes's Avatar
    Join Date
    May 2009
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Location: Pull Down Select Box

    Will this be easy to achieve? Would you be willing to tell me how this can be done exactly? Unfortunately,I dont have much experience with php etc...

  4. #4
    Member damien's Avatar
    Join Date
    May 2009
    Location
    Melbourne, Australia
    Posts
    91
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Location: Pull Down Select Box

    I tried it like this:
    viewtopic.php?f=10&t=347

  5. #5
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: Location: Pull Down Select Box

    Nicely done Damien of the Dharma Initiative. ;-) Love that show....

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)