Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1007411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:36:49+00:00 2026-05-16T08:36:49+00:00

In functions php, this works like a charm: <textarea name=menu1anchor id=menu1anchor cols=40 rows=1><?php echo

  • 0

In functions php, this works like a charm:

<textarea name="menu1anchor" id="menu1anchor" cols="40" rows="1"><?php echo get_option('menu1anchor'); ?></textarea>

How can i make this drop down list work? I want to be able to input my values and select a desired one later on.

Right now, it does not matter which value I select, after i press “save changes” it does not send my value thru the form to wordpress options.

<select name="menu1" id="menu1">
     <option value="1">Microsoft</option>
     <option value="2">Google</option>
     <option value="3">Apple</option>
     </select>

Thank u!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T08:36:49+00:00Added an answer on May 16, 2026 at 8:36 am
    <select name="menu1" id="menu1">
         <option value="1"<?php selected(get_option('menu1'),1); ?>>Microsoft</option>
         <option value="2"<?php selected(get_option('menu1'),2); ?>>Google</option>
         <option value="3"<?php selected(get_option('menu1'),3); ?>>Apple</option>
         </select>
    

    Try that instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This code works like a charm to show/hide table rows based on selected filters.
I have this part of code in my functions.php: function cc_admin_enqueue_scripts($hook) { $file_dir=get_bloginfo('template_directory'); wp_enqueue_script('media-upload');
I'm using this to load php functions and send them to javascript in a
How can I this PHP function include in jquery .html? PHP function: function trim_text($string,
I currently call a function to filter some HTML in PHP like this FilterHTML($string)
I have a contact form on my website, and everything works like a charm.
I have written this random password script which works perfectly. Although I would like
DataPull.php: CASE CityList: echo <select style='width:132px;height:243px;' size='17' id='CityListA' name='CityListA' onChange='SubCityList(this.value);'>; $result = $db-> query(SELECT
this works: $.ajax({ type: 'POST', url: 'register.php', data: {captcha: captcha }, success: function() {
Like the title says, I need to use php (wordwrap or whatever works) to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.