Hey,
I've been making this huge questionaire thing for a client, and it has like 80 fields lol.
It's huge. but I came up with a good layout, that used the screen space efficently, and was able to put it all on one page. If you can, I'd recommend that. Cause it's a real pain in the arse to be passing along variables from the previous form page to the next.
Do it on one file, will be much neater that way. That doesn't mean you can't split it up so some shows on one page view, and the rest on the next, but you should be able to do it all in one file.
Just pass some variables in the query string so you know where you're up to:
<a href="/Form.php?page=2">Go to next page</a>
....
displayPage($page);
What i would like to do.. is have a page.. which has tick box's >for each section.. and depending on which boxes they select, it >builds the form..
Well... just depends on what you're doing with the form. If they have to go through the entire form, well if it's too big split it up into pages, and just show one page at a time. I don't know that's usefull to get them to select with a check box... but then it may be... It will depend on what the form is for.
I mean if they have to fill in certain sections then check boxes may not be the best solution.
i thought about splitting the form into 7 php files... then using >some kind of if statement, to include the php files that are >selected.. would this work ? is this the best way ? and most >importantly, how would one do this ?
if the forms are really big, and you need the application to be really fast, or the servers under quite a bit of a load, then that would be an ok idea. But otherwise, it's prolly not nessesary. Would be easer to just put it all in the one file, and just display whatever sections of the from are nessessary.
well, good luck man.
-Adam 🙂