Datepicker works in IE error in Firefox or Chrome
<p>Web form with date picker, one of the fields is cdate , I use jsdatepick for this field.</p>

<pre><code>&lt;script type="text/javascript"&gt;
    window.onload = function(){
        new JsDatePick({
            useMode:2,
            target:"cdate",
            dateFormat:"%d-%M-%Y"

    };
&lt;/script&gt;



&lt;form method="POST" action="insert_record.php"&gt;

&lt;tr&gt;
 &lt;td style="width: 143px"&gt;Call Date:
 &lt;/td&gt;
&lt;td style="width: 472px"&gt;
&lt;input type=text id="cdate" name="cdate"  size=40 style="color: black;background-color:#FFFF66; width: 270px;"&gt;
&lt;/td&gt;
</code></pre>

<p>and the form submit php is </p>

<pre><code>&lt;?
$cdate=$_POST['cdate'];
$db="call";
$link = mysql_connect("localhost", "sql", "sql");
//$link = mysql_connect("localhost",$_POST['username'],$_POST['password']);
if (! $link)
die("Couldn't connect to MySQL");
mysql_select_db($db , $link) or die("Select Error: ".mysql_error());
$result=mysql_query("INSERT INTO data (cdate) VALUES ('$cdate')")or die("Insert Error: ".mysql_error());
mysql_close($link);
print "Record added\n";
?&gt;
</code></pre>

<p>however once submitted I get message saying :: </p>

<blockquote>
  <p>Notice: Undefined index: cdate in d:\web\apache\htdocs\callz\submit_record.php on line 4</p>
</blockquote>

<p>this message only occurs in Firefox or Chrome, works fine in any version of IE
any ideas? Note there are other variables besides cdate, all of those variables enter into the table without issue, just seems to be the datepick one.  I have tried another datepick and this doesn't happen, only with the jsdatepick, but jsdatepick is so much more suitable. Any ideas?
thanks</p>
