gammaman Posted May 2, 2010 Share Posted May 2, 2010 OK so I have this form with 2 input boxes and two drop downs. When a choice is made on the second drop down I would like the page to reload keeping the values in all the fields. Then based on the value posted for that second drop down, I would like additional form fields to appear. Can this be accomplished with just html and php? Or do I need javascript? In either case, some guidance would be appriciated. Link to comment https://forums.phpfreaks.com/topic/200440-help-posting-dropdown-values/ Share on other sites More sharing options...
JAY6390 Posted May 2, 2010 Share Posted May 2, 2010 JavaScript is required. I would use AJAX for the dropdown update to save having to refresh the whole page Link to comment https://forums.phpfreaks.com/topic/200440-help-posting-dropdown-values/#findComment-1051878 Share on other sites More sharing options...
gammaman Posted May 2, 2010 Author Share Posted May 2, 2010 OK well then I have another question. Not really related but I did not want to open a new post. Can someone please show me how to work with $_SESSION variables so that I can carry form values across multiple pages? Link to comment https://forums.phpfreaks.com/topic/200440-help-posting-dropdown-values/#findComment-1051885 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.