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 ......