Radio How to submit a radio button (TP auto-complete)

Source: Internet
Author: User
Radio radio Button How to submit (TP auto complete)
This post was last edited by liuser_cn on 2012-11-28 22:09:52

        Man


Woman

The database field is sex.
echo $Mem->getlastsql (); Do not add the radio button, the general account, password Ah, can be.

How is a single radio submitted? No..
------Solution--------------------
Because radio button is not checked, it will not be submitted, so it is not checked by default.
Should write array (' sex ', ' require ', ' gender cannot be empty ', 1),//use require to determine if gender is empty
That must be verified



References:
References: You have
Man
So
Array (' Sex ', ' require ', ' gender cannot be null '),//use require to determine if gender is empty

I'm sorry, I didn't change it back.
Array (' Sex ', ' require ', ' gender cannot be empty '),//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.