$php_mysql$ Posted July 10, 2011 Share Posted July 10, 2011 hey guys, how can i achieve this? i got these field <select name"abcd"> <option value"0">select place</option> <option value"place1">place1</option> <option value"place2">place2</option> </select> how when a user select either place 1 or 2 i want the page to reload, i know it can be done by javascript but i want it to be done by php and then set the value into session how can i? any help? Link to comment https://forums.phpfreaks.com/topic/241558-making-a-select-option-to-reload-and-put-into-session/ Share on other sites More sharing options...
spiderwell Posted July 10, 2011 Share Posted July 10, 2011 you wont get it done in php as an onclick/change is a javascript trigger. The best you can do i would say is use javascript to trigger the page to post, then the php page you post to can do the session bit. Link to comment https://forums.phpfreaks.com/topic/241558-making-a-select-option-to-reload-and-put-into-session/#findComment-1240765 Share on other sites More sharing options...
$php_mysql$ Posted July 10, 2011 Author Share Posted July 10, 2011 so ill have to use js? wish there was some way to get it done with php Link to comment https://forums.phpfreaks.com/topic/241558-making-a-select-option-to-reload-and-put-into-session/#findComment-1240771 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.