Problem data query results for HTML tag Select are displayed in the drop-down menu

Source: Internet
Author: User
The HTML Select drop-down menu has its own manually added menu, such as
Value 1 Value 2 Value 3

Now I query the results from the database is 2, how to make the page display, the drop-down menu automatically locked in the "Value 2"?


Reply to discussion (solution)

Value 1 Value 2 Value 3
$value = 2;
echo "";

Value 1 Value 2 Value 3
$value = 2;
echo "";

Is there anything wrong with this place? Not always.

ManWoman
 
  

This post was last edited by xuzuning on 2013-03-09 11:51:14
PHP code?12345ManWomen have quotes around the string, no quotation marks have become a variable (JS) So, to JS this part of the understanding is really not much. Thank you for your advice 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.