From: James E. F. <jf...@ac...> - 2002-01-16 19:29:35
|
Oh! I didn't think of that. I intended for it to be a separate page of results. I suppose if you want the results and the survey on the same page you could do that. I haven't tested it that way, but apparently it works. =) -James On Wed, 16 Jan 2002, olaf wrote: > > Hi James, > > when i change this line, i will see only the Results, cause inside of > that if is a return; so it never goes through the part where the survey > is build. By removing this return; (line 34 in handler.php) it works for > me. First the results are displayed and then the survey. I think that is > how it should look like, or? > > CU > > Olaf :-) > "James E. Flemer" wrote: > > > Hey everyone, > > Another bug squashed. If you tried to display results to > > the public by using handler.php, it would fail to do so and > > show the survey. I had 'defined' instead of 'isset' on line > > 31 of public/handler.php. Either get the latest version > > >from CVS or change the line by hand if you need this > > feature. (Thanks to Ken Teague for the bug report.) > > > > For those of you who didn't know about this feature I will > > explain. The handler is capable of embedding both the > > survey itself and the results in a template. To embed the > > results simply add the statement ``$results=1;'' to the PHP > > tag in your template. For example: > > <?php $sid=42; $results=1; include('.../handler.php'); ?> > > > > Take it easy, > > -James > > > > _______________________________________________ > > phpESP-general mailing list > > php...@li... > > https://lists.sourceforge.net/lists/listinfo/phpesp-general > > > _______________________________________________ > phpESP-general mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/phpesp-general > |