Select menu saving correctly to DB but not retaining value in back end

Home Forums WPAlchemy Select menu saving correctly to DB but not retaining value in back end

This topic contains 1 reply, has 2 voices, and was last updated by  alokjain_lucky 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2634

    cosmocanuck
    Participant

    The title says it all – I have a select box menu set up and it saves the data correctly, but the selection shows the default option, “Select…”, after updating the post.

    I just solved a similar problem with checkboxes by using an alternate provided method of adding checkboxes, but there is no other way provided to add a select menu than the way I’m doing it – and I can’t find any flaw in how I’m implementing that…

    Here’s the code: http://pastebin.com/tZydLHBx

    I hope someone can help as this is a real dealbreaker for my client if I can’t solve it… thanks!

    #2655

    alokjain_lucky
    Participant

    i think you should use

    $mb->the_select_state(‘AL’)

    instead of

    $mb->the_select_state(‘Alabama’)

    value stored in database is AL not Alabama.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.