I'm running into a little problem on submitting an input text-field which should have value set by a javascript script.
this is my code for the form:
<html>
<head><title></title>
<script src="http://cdn.jquerytools.org/1.2.7/full/jquery.tools.min.js"></script>
<link rel="stylesheet" type="text/css" href="stylingIndex.css" />
</head>
<body>
<div class="main">
<table border="0">
<form method="POST" action="begin.php?id=createfile">
<tr><td>Date 1</td>
<td><input type="date" name="date1"></td></tr>
<tr><td>Date 2</td>
<td><input type="date" name="date2"></td></tr>
<tr><td><input type="submit" name="submit" value="Go"></td></tr>
</form>
</table>
</div>
<script>
$(":date").dateinput();
</script>
</body>
</html>
Whenever I check the $_POST value its empty. (the createfile.php is handling perfectly, that's not the problem), I think the problem is in the way i treat the Javascript but I don't know what I'm doing wrong.
It looks like it's not assigning the value selected (the date) from the script, although it does appear client side, it just doesn't process it after submitting. Hope anyone can help me.
date1ordate2being posted tobegin.php?</script>tag after the<html>tag?