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. ?? Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/145796-javascript-variable-php-session/#findComment-765492 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.