So, I have 2 questions.
I am trying to calculate the expiration date which will be calculated as adding the current date + the option that has been select i.e. 30, 60 or 90 days.
$EXday = date('d', mktime(0,0,0,0, date(d) + $_POST[exdays], 0)); $EXmonth = date('m', mktime(0,0,0, date(m), date(d) + $_POST[exdays], 0)); $EXyear = date('Y', mktime(0,0,0,date(m) ,date(d) + $_POST[exdays], date(Y))); <tr> <td> This offer expire after: </td> <td> <select name="exdays"> <option value="30"> 30 </option> <option value="60"> 60 </option> <option value="90"> 90 </option> </select> days. </td> </tr>
2nd question is:
When I perform my Insert Statement, instead of getting a value in one of the field I get "Array", but the rest of statement seems to be ok.
I am using a radio button similar to the one I just posted about the expiration date.