I need to get the date and time of the local users computer and put them into a variable that I can check...
I can do this in javascript:
- Code: Select all
<script type="text/javascript">
var localuserdate = new Date()
var monthname=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
document.write((localuserdate.getDate()) + (" ") + (monthname[localuserdate.getMonth()]))
</script>
but I cannot then create a string from this that I can use in the php. I need to be able to store the variable in the session rather than write it to the page.
I know this sounds weird, but I need this page to display different info based on what the user has their clock set to...
Can anybody help me?
Thanks


