alvinchua Posted February 3, 2008 Share Posted February 3, 2008 <form action=""> <SELECT name='month' id='selectMonth'> <OPTION VALUE="0" SELECTED >January</OPTION> <OPTION VALUE="1">February</OPTION> <OPTION VALUE="2">March</OPTION> <OPTION VALUE="3">April</OPTION> <OPTION VALUE="4">May</OPTION> <OPTION VALUE="5">June</OPTION> <OPTION VALUE="6">July</OPTION> <OPTION VALUE="7">August</OPTION> <OPTION VALUE="8">September</OPTION> <OPTION VALUE="9">October</OPTION> <OPTION VALUE="10">November</OPTION> <OPTION VALUE="11">December</OPTION> </SELECT> <SELECT name='day' id='selectDay'> <OPTION VALUE="1" SELECTED >1</OPTION> <OPTION VALUE="2">2</OPTION> <OPTION VALUE="3">3</OPTION> <OPTION VALUE="4">4</OPTION> <OPTION VALUE="5">5</OPTION> <OPTION VALUE="6">6</OPTION> <OPTION VALUE="7">7</OPTION> <OPTION VALUE="8">8</OPTION> <OPTION VALUE="9">9</OPTION> <OPTION VALUE="10">10</OPTION> <OPTION VALUE="11" >11</OPTION> <OPTION VALUE="12">12</OPTION> <OPTION VALUE="13">13</OPTION> <OPTION VALUE="14">14</OPTION> <OPTION VALUE="15">15</OPTION> <OPTION VALUE="16">16</OPTION> <OPTION VALUE="17">17</OPTION> <OPTION VALUE="18">18</OPTION> <OPTION VALUE="19">19</OPTION> <OPTION VALUE="20">20</OPTION> <OPTION VALUE="21">21</OPTION> <OPTION VALUE="22">22</OPTION> <OPTION VALUE="23">23</OPTION> <OPTION VALUE="24">24</OPTION> <OPTION VALUE="25">25</OPTION> <OPTION VALUE="26">26</OPTION> <OPTION VALUE="27">27</OPTION> <OPTION VALUE="28">28</OPTION> <OPTION VALUE="29">29</OPTION> <OPTION VALUE="30">30</OPTION> <OPTION VALUE="31">31</OPTION> </SELECT> if the user selected april the combo box for days will automatically refresh it to only 30 days available ... if the user select January it will refresh back to 31 days... pls advice.. thanks Quote Link to comment https://forums.phpfreaks.com/topic/89217-how-to-validate-date-in-the-combo-box-jan-31-feb-29-march-31/ Share on other sites More sharing options...
haku Posted February 3, 2008 Share Posted February 3, 2008 This is a javascript issue, its not something you can do with php without reloading the whole page after the person chooses the month. Quote Link to comment https://forums.phpfreaks.com/topic/89217-how-to-validate-date-in-the-combo-box-jan-31-feb-29-march-31/#findComment-456843 Share on other sites More sharing options...
Barand Posted February 3, 2008 Share Posted February 3, 2008 or use AJAX Quote Link to comment https://forums.phpfreaks.com/topic/89217-how-to-validate-date-in-the-combo-box-jan-31-feb-29-march-31/#findComment-456904 Share on other sites More sharing options...
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.