How to submit the radio button (automatically completed by TP)

Source: Internet
Author: User
How to submit the radio button (automatically completed by TP) This post is edited by liuser_cn from 2012-11-2822: 09: 52 & nbsp; & nbsp; & lt; input & nbsp; typeradio & nbsp; namesex & nbsp; value radio button (automatically completed by TP)

This post was last edited by liuser_cn at 22:09:52 on

        Male


Female

The database field is sex.
Echo $ Mem-> getLastSql (); do not add the single-choice button. general accounts and passwords are acceptable.

How do I submit a single choice? No ..
------ Solution --------------------
Because the single button is not selected, it will not be submitted, so it cannot be checked by default.
Array ('Sex ', 'require', 'gender cannot be blank ', 1), // use require to determine whether the gender is empty
Verification is required.



Reference:
Reference: you have
Male
So
Array ('Sex', 'require ', 'gender cannot be blank'), // use require to determine whether gender is empty

Sorry, I didn't change it back,
Array ('Sex', 'require ', 'gender cannot be blank'), // use requi ......

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.