adammcmillan Posted July 16, 2008 Share Posted July 16, 2008 I'm trying to show a 2nd select box if a certain option in the first select box is chosen using PHP. I need it to display the box without having to submit the form or reload the page. Any ideas? Link to comment https://forums.phpfreaks.com/topic/115106-showhide-select-box-using-php/ Share on other sites More sharing options...
slushpuppie Posted July 16, 2008 Share Posted July 16, 2008 javascript. php will not do this for you without submitting/reloading the page. Link to comment https://forums.phpfreaks.com/topic/115106-showhide-select-box-using-php/#findComment-591940 Share on other sites More sharing options...
adammcmillan Posted July 16, 2008 Author Share Posted July 16, 2008 So there's no way to use a Get or anything like that to find out what was just chosen? Know of any good, "simple" javascript tutorials on this subject? Link to comment https://forums.phpfreaks.com/topic/115106-showhide-select-box-using-php/#findComment-591944 Share on other sites More sharing options...
slushpuppie Posted July 16, 2008 Share Posted July 16, 2008 what you are describing sounds like ajax, which is essentially javascript. just google for displaying and hiding elements with javascript... there's a ton of tutorials on it. Link to comment https://forums.phpfreaks.com/topic/115106-showhide-select-box-using-php/#findComment-591954 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.