John01 Posted February 14, 2016 Share Posted February 14, 2016 Hi I have changed this single input; <input type="text" name="fromtime[]" value="" placeholder="From Time (hh:mm)" class="forminput" list="timeoptions" /> into two selects; <div id="username-wrapper1" class="forminput_wrapper1"> <select id="houroptions" value="" name="fromhour[]" placeholder="From Hour (hh)" class="forminput1" > <option>00</option> ... <option>23</option> </select> <select id="minuteoptions" value="" name="fromminutes[]" placeholder="From Minute (mm)" class="forminput1" > <option>00</option> ... <option>59</option> </select> </div> ie I have broken down time entry into hours and minute entries. How can I now join the values of hour and minutes with a : (colon) in between into fromtime[] variable and at what location can I do it? Can it be done at form level once values of hour and minutes are assigned or does it have to be done elsewhere? Thanks Regards Link to comment https://forums.phpfreaks.com/topic/300810-concatenating-form-variables/ Share on other sites More sharing options...
Barand Posted February 14, 2016 Share Posted February 14, 2016 You have already asked this same question here http://forums.phpfreaks.com/topic/300712-hoursminutes-drop-downs/?do=findComment&comment=1530668 Don't create multiple threads with the same topic. Closing this one. Link to comment https://forums.phpfreaks.com/topic/300810-concatenating-form-variables/#findComment-1531108 Share on other sites More sharing options...
Recommended Posts