This is the code I use to obtain the localtime of my visitors...<SCRIPT LANGUAGE="JavaScript">
RightNow = new Date();
document.write("It's now " + (RightNow.getHours()) + ":" + (RightNow.getMinutes()) + ", on " +
RightNow.getDate() + "-" + (RightNow.getMonth()+1) + "-" + RightNow.getFullYear() + ".")
</SCRIPT>
This is the code I use to insert some messages that visitors submitted via the form to a mysql db.if ($submitmsg == "SUBMIT") {
$shoutout = "INSERT INTO shoutout SET
poster='$postername',
msg='$message',
time='blablabla'";
How can I insert the time that the javascript get from visitors to my mysql db? Can anyone plz help?




Bookmarks