hiii ppl of the forum..

I have this date field in the form, i managed to get the calender script work, when i select the date, it appears properly in the text field, but on cliking submit, it gets stored as 0000-00-00 in the database.

any idea frens what is happening here..please help me out


<td align="left">Purchase Order Date:</td>
            <td><input type="text" name="podate" id="podate" tabindex="2" />
            <a onclick="setYears(1234, 2050); showCalender(this, 'podate');"><img src="../web/images/calender5.jpeg" /></a>
              <?php require_once('../web/calhtml.html');?></td>

frens, more info on this issue, i tried to print the date using alert n it is happening properly, so is the issue with $_POST again?