Diana Posted February 15, 2018 Group: Members Topic Count: 85 Topics Per Day: 0.03 Content Count: 194 Reputation: 3 Joined: 12/17/16 Last Seen: April 1 Share Posted February 15, 2018 In fluxcp the gender type is "radio" and look like this : I want to make it as "select" like this : I tried to change this : <p> <label><input type="radio" name="gender" id="register_gender_m" value="M"<?php if ($params->get('gender') === 'M') echo ' checked="checked"' ?> /> <?php echo $this->genderText('M') ?></label> <label><input type="radio" name="gender" id="register_gender_f" value="F"<?php if ($params->get('gender') === 'F') echo ' checked="checked"' ?> /> <?php echo $this->genderText('F') ?></label> </p> to be like this : <select> <option><input type="radio" name="gender" id="register_gender_m" value="M"<?php if ($params->get('gender') === 'M') echo ' checked="checked"' ?> /> <?php echo $this->genderText('M') ?></option> <option><input type="radio" name="gender" id="register_gender_f" value="F"<?php if ($params->get('gender') === 'F') echo ' checked="checked"' ?> /> <?php echo $this->genderText('F') ?></option> </select> But tell me an error : You should choose M or F . Please can anyone help me?? Quote Link to comment Share on other sites More sharing options...
0 -Chuck- Posted February 15, 2018 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 17 Reputation: 5 Joined: 01/06/12 Last Seen: April 7 Share Posted February 15, 2018 Try: <select name="gender"> <option disabled>-Select-</option> <option id="register_gender_m" value="M"<?php if ($params->get('gender') === 'M') echo ' selected' ?>>Male</option> <option id="register_gender_f" value="F"<?php if ($params->get('gender') === 'F') echo ' selected' ?>>Female</option> </select> 1 Quote Link to comment Share on other sites More sharing options...
0 Diana Posted March 3, 2018 Group: Members Topic Count: 85 Topics Per Day: 0.03 Content Count: 194 Reputation: 3 Joined: 12/17/16 Last Seen: April 1 Author Share Posted March 3, 2018 @luanwg Thank you very much <3 Quote Link to comment Share on other sites More sharing options...
0 rmon Posted July 20, 2020 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 97 Reputation: 2 Joined: 04/27/16 Last Seen: 21 hours ago Share Posted July 20, 2020 (edited) Thanks Edited July 20, 2020 by rmon Quote Link to comment Share on other sites More sharing options...
Question
Diana
In fluxcp the gender type is "radio" and look like this :
I want to make it as "select"
like this :
I tried to change this :
to be like this :
But tell me an error : You should choose M or F .
Please can anyone help me??
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.