# Passing Values from Javascript to PHP

**URL:** <https://forum.kirupa.com/t/passing-values-from-javascript-to-php/216237>\
**Category:** programming\
**Created:** [February 14, 2007, 6:58pm UTC](https://forum.kirupa.com/t/passing-values-from-javascript-to-php/216237 "2007-02-14T18:58:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FrankieB](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/frankieb/32/1238_2.png) [@FrankieB](https://forum.kirupa.com/u/FrankieB)\
**Post date:** [February 14, 2007, 6:58pm UTC](https://forum.kirupa.com/t/passing-values-from-javascript-to-php/216237/1 "2007-02-14T18:58:38Z")

</div>

I wasn’t sure which forum to post this in, but considering it will be ending in PHP I came to server-side.

What I am trying to do is figure out the local user’s time on their machine using javascript, send the time to PHP, and display different stylesheet values depending on what time it is. Sort of like time sensitive CSS.

I can find the date, time and year easily using javascript, the problem I’m having is sending whatever the value of the date, hour, month, etc. to PHP to figure out which stylesheet to show.

Any pointers?
