Suchy Posted February 18, 2009 Share Posted February 18, 2009 I have a simple form where a user can increase/decrease a number by pressing on 2 buttons (javascript). Is it possible to pass this variable via a php session when the user hits submit button. ?? Link to comment https://forums.phpfreaks.com/topic/145796-javascript-variable-php-session/ Share on other sites More sharing options...
premiso Posted February 18, 2009 Share Posted February 18, 2009 Not via session, it has to be sent via POST or GET to the php script. You can do this by using a form or looking into AJAX to send the request without a page reload. Link to comment https://forums.phpfreaks.com/topic/145796-javascript-variable-php-session/#findComment-765492 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.