top frame:
-- choose a form --
first form
second form
Good point, lack of javascript is a consideration.
The request is for a form where the second half format is dependent on
the first half. In other words, they make some choices on the top that
determine what the form on the bottom will
Well, he's asking you to do something that goes against what the web is good
at. The simple solution is a two page form.
I've also had some luck with hiding/showing parts of the form with
css/javascipt... it worked really well, but needed (of course) a modern
browser with good JS and CSS support.
Just store the results of the first page into the session, get the
results from the second page, and then process everything.
Or serialize $_POST from the first page and pass it through the second
page in a hidden field.
I'd advise against using frames, just use two pages to get your results.
--
Yuk. I'll admit I don't like frames at the best of times, but is there any
reason why the two-part form can't be two *pages* rather than two *frames*?
The way I usually do that stuff is get them to fill in part a, then part b:
1) validates part a
2) decides what the part b form should look like
Did you get a request for a two part form, or for a form on 2 pages? The
problem I see is with browsers
without javascript (either turned of or not implemented)
Chris Rehm wrote:
I'd just like to see if I can get some feedback from PHP pros to see
if anyone is doing anything like this.
I've go
5 matches
Mail list logo