How to determine if a radio box is selected

Source: Internet
Author: User
How to determine if a radio box is selected
Need to read a value from the background database, the value to determine whether the foreground screen radio box is selected, how should I write? I can't use it on the Internet.

Find a sample code

>

It is wrong to seek positive solutions.
------Solution--------------------
Checked= "Checked"
------Solution--------------------
 >

------Solution--------------------
There's nothing wrong with that.
You lose your $open to see if it's 1.
------Solution--------------------
References:
There's nothing wrong with that.
You lose your $open to see if it's 1.



It is still possible to say upstairs, first confirm whether $open is 1. It is not a problem to say what you have written.


Do not know whether your HTML and PHP is separate, if it is separate, you can in the PHP program to determine the declaration of variable reception, in the page call variables. If it is not separate, then continue to use your method.
  • 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.