I'm writing a little application in PHP, and I'm still pretty new to PHP. 🙂
It's basically a form (or a bunch of forms on sequential pages), and if one selection is chosen, then they see certain form fields in the next page, and if another selection is chosen, they see different form fields on a differnet page.
Basically index.php is always the active page, and depending on what page they are on (determined by variables I'm passing from page to page), the page*.php file is included (using require_once) to display that page. (page1.php, page2.php etc..)
Anyway, on page 4, section 9, there is a radio button question on the top. If they select the yes option, I would like the page to reload... or somehow display section 10. However, if they select the no option, I'd like section 10 to remain invisible, and then they can press the Next Page button and continue on to page 5.
Is this possible? Would I need to incorporate some javascript? Or am I stuck breaking sections 9 and 10 into two pages... so if they select yes on page 4, it goes to one page with section 10 info, and if they select no, it takes them to another page with section 11 information?
Ideally I'd like there to be a checkbox, and when they check it, section 10 automagically appears. But that might be a javascript onclick (nope, I have never done that either).
I hope I've made some sense. 🙂 Thanks.