Lid |
|
Ik heb de volgende code:
<head>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/jquery.datePicker-2.1.2.js"></script>
<script type="text/javascript" src="js/jquery.datePicker.min-2.1.2.js"></script>
<script type="text/javascript">
$(function()
{
$('.date-pick').datePicker({startDate:'01/01/2000'});
});
</script>
</head>
<?php
include ("../config/config.php");
include ("../fckeditor/fckeditor.php");
?>
<form method="post" action="<?php echo $PHP_SELF ?>">
<table width="100%" border="0">
<tr>
<td width="13%">Datum invoer:</td>
<td><script type="text/javascript">
$(function()
{
$('.date-pick').datePicker({startDate:'01/01/2000'});
});
</script><input type="date" id="date" tabindex=2 /></td>
</tr>
<tr>
<td>Titel:</td>
<td><input name="titel" style="width:500px" tabindex=1 /></td>
</tr>
<tr>
<td valign="top">Bericht:</td>
<td><?php
$sBasePath = "../fckeditor/";
$oFCKeditor = new FCKeditor('nieuws');
$oFCKeditor->BasePath = $sBasePath;
$oFCKeditor->Value = '';
$oFCKeditor->Create();
?>
</td>
</tr>
<tr>
<td valign="top"><input type="Submit" value="Toevoegen"></td>
</tr>
</table>
</form>
<p>
<?php
mysql_select_db($database, $hvhazewind);
if($_SERVER['REQUEST_METHOD'] == "POST")
($query = mysql_query("INSERT INTO nieuws (titel, datum_invoer, nieuws) VALUES ('".$_POST['titel']."', '".$_POST['datum_invoer']."', '".$_POST['nieuws']."')"))
?>
<head> <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="js/jquery.datePicker-2.1.2.js"></script> <script type="text/javascript" src="js/jquery.datePicker.min-2.1.2.js"></script> <script type="text/javascript"> $(function() { $('.date-pick').datePicker({startDate:'01/01/2000'}); }); </script> </head> <?php include ("../config/config.php"); include ("../fckeditor/fckeditor.php"); ?> <form method="post" action=" <?php echo $PHP_SELF ?>"> <table width="100%" border="0"> <tr> <td width="13%">Datum invoer:</td> <td><script type="text/javascript"> $(function() { $('.date-pick').datePicker({startDate:'01/01/2000'}); }); </script><input type="date" id="date" tabindex=2 /></td> </tr> <tr> <td>Titel:</td> <td><input name="titel" style="width:500px" tabindex=1 /></td> </tr> <tr> <td valign="top">Bericht:</td> <td><?php $sBasePath = "../fckeditor/"; $oFCKeditor = new FCKeditor('nieuws'); $oFCKeditor->BasePath = $sBasePath; $oFCKeditor->Value = ''; $oFCKeditor->Create(); ?> </td> </tr> <tr> <td valign="top"><input type="Submit" value="Toevoegen"></td> </tr> </table> </form> <p> <?php if($_SERVER['REQUEST_METHOD'] == "POST") ($query = mysql_query("INSERT INTO nieuws (titel, datum_invoer, nieuws) VALUES ('".$_POST['titel']."', '".$_POST['datum_invoer']."', '".$_POST['nieuws']."')")) ?>
Ik krijg echter niets te zien van de datepicker.
Wat doe ik fout.
Dit is de eerste keer dat ik JQUERY gebruik.
Wie kan en wil mij helpen??
|