php - combine all 3 $_post to 1 variable -
i wanted combine 3 $_post
1 variable month day wont show up, how come?
here code:
<div id="register-birth-date"> <input type="number" name="register-day" placeholder="date"> <select id="register-month"> <option value="00">mouth</option> <option value="01">january</option> <option value="02">february</option> <option value="03">march</option> <option value="04">april</option> <option value="05">may</option> <option value="06">june</option> <option value="07">july</option> <option value="08">august</option> <option value="09">september</option> <option value="10">october</option> <option value="11">november</option> <option value="12">december</option> </select> <input type="number" name=" " placeholder="years"> </div>
$air_user_registered_date = $_post['register-day']."/".$_post['register-month']."/".$_post['register-years'];
you need add name
attribute both select box
months , input box
years.
<div id="register-birth-date"> <input type="number" name="register-day" placeholder="date" /> <select name="register-month" id="register-month"> <option value="00">mouth</option> <option value="01">january</option> <option value="02">february</option> <option value="03">march</option> <option value="04">april</option> <option value="05">may</option> <option value="06">june</option> <option value="07">july</option> <option value="08">august</option> <option value="09">september</option> <option value="10">october</option> <option value="11">november</option> <option value="12">december</option> </select> <input type="number" name="register-years" placeholder="years" /> </div>