<script> document.write('<input type="text" id="date_timestamp" name="date_timestamp" value="' +Math.round(new Date().getTime()/1000)+'"/>') </script>