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) Link to comment https://forums.phpfreaks.com/topic/20298-exchange-data-javascript-to-php-in-the-_session-array/ 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 Link to comment https://forums.phpfreaks.com/topic/20298-exchange-data-javascript-to-php-in-the-_session-array/#findComment-89398 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) Link to comment https://forums.phpfreaks.com/topic/20298-exchange-data-javascript-to-php-in-the-_session-array/#findComment-89409 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.