Re: [PHP] PHP driven frame

2002-11-06 Thread Marek Kilimajer
top frame: form target=bottom_frame action=show_form.php select name=form onChange=this.form.submit() option value= -- choose a form -- /option option value=form1 first form /option option value=form2 second form /option /select input type=submit /form bottom frame (show_form.php):

Re: [PHP] PHP driven frame

2002-11-05 Thread Marek Kilimajer
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

Re: [PHP] PHP driven frame

2002-11-05 Thread Justin French
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

RE: [PHP] PHP driven frame

2002-11-05 Thread John W. Holmes
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.

Re: [PHP] PHP driven frame

2002-11-05 Thread Justin French
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