ronverdonk Posted September 10, 2006 Share Posted September 10, 2006 Is it possible to pass data from a JavaScript function to the $_SESSION array, so it can be picked up by a PHP script?I'd be grateful for any help on this.Ronald 8) Quote Link to comment Share on other sites More sharing options...
radalin Posted September 10, 2006 Share Posted September 10, 2006 I do not think that it's possible as js is only a browser side script language.But you can use XMLHTTPReqeust object to send data to a php function which will set the session variable for you and then you can use that variable. It's ajaxian approach by the way Quote Link to comment Share on other sites More sharing options...
ronverdonk Posted September 10, 2006 Author Share Posted September 10, 2006 Thanks. I will investigate Ajax for this.Ronald 8) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.