From: <ce...@le...> - 2002-03-29 12:51:03
|
Hi! I need a help for deploying private survey, As i can't see anything in README, neither in the phpesp-general mailing=20 list, i send you this question. (please note that i use phpESP-1.4beta1) (note too, that i'm using the french version - that we are finishing to=20 traduce; we will send it to you very soon [this afternoon]- So don't be=20 afraid when you will see Error messages in french) 1/ To put a link to the survey, i've try create a survey.php with this li= ne: <?php $sid=3D18;=20 include("/var/www/html/appll/phpESP-1.4beta1/public/handler.php");?> but it does not work with PRIVATE survey (only with a public one). here is the error: --- Warning: Cannot add header information - headers already sent by (output=20 started at /var/www/html/appll/phpESP-1.4beta1/survey.php:1) in=20 /var/www/html/appll/phpESP-1.4beta1/admin/include/lib/espauth.inc on line= 68 Warning: Cannot add header information - headers already sent by (output=20 started at /var/www/html/appll/phpESP-1.4beta1/survey.php:1) in=20 /var/www/html/appll/phpESP-1.4beta1/admin/include/lib/espauth.inc on line= 69 [ ID utilisateur ou mot de passe incorrect. Votre compte est=20 d=E9sactiv=E9/expir=E9. ] --- (this error message tell me than User ID expired / the account expired ) So i decide to try another method: 2/ rather than a link, i make a submit button, <form action=3D"http://myhost.mydomain.com/phpesp/public/handler.php"=20 method=3D"post"><input type=3Dhidden name=3D"sid" value=3D"13"><input=20 type=3Dsubmit value=3D"nameofsurvey"></form> It works well with a public survey, but not with a private one. A authentification pop-up appears, but never succeed ; (it always ask to me authentificate me) 3/ I've finally decided to make a button opening a new window with this=20 code: <form target=3D"_new"=20 action=3D"http://myhost.mydomain.com/phpesp/public/handler.php"=20 method=3D"post"><input type=3Dhidden name=3D"sid" value=3D"13"><input=20 type=3Dsubmit value=3D"nameofsurvey"></form> AND THIS WORK! So i'm asking you this question, What is the method to deploy private survey ? Thanks. |
From: James E. F. <jf...@ac...> - 2002-03-29 14:59:10
|
Take a look at the comments at the top of "handler-prefix.php". For private surveys, you need to include the prefix file *at the very top* of the page you want to embed the survey in. This is because it has to send the Authentication headers, and the headers *must* be sent before any of the page content. Let me know if you have any further problems. -James On Fri, 29 Mar 2002, Cédric Levasseur wrote: > Hi! I need a help for deploying private survey, > As i can't see anything in README, neither in the phpesp-general mailing > list, i send you this question. > (please note that i use phpESP-1.4beta1) > (note too, that i'm using the french version - that we are finishing to > traduce; we will send it to you very soon [this afternoon]- So don't be > afraid when you will see Error messages in french) > > 1/ To put a link to the survey, i've try create a survey.php with this line: > <?php $sid=18; > include("/var/www/html/appll/phpESP-1.4beta1/public/handler.php");?> > > but it does not work with PRIVATE survey (only with a public one). > here is the error: > --- > Warning: Cannot add header information - headers already sent by (output > started at /var/www/html/appll/phpESP-1.4beta1/survey.php:1) in > /var/www/html/appll/phpESP-1.4beta1/admin/include/lib/espauth.inc on line 68 > > Warning: Cannot add header information - headers already sent by (output > started at /var/www/html/appll/phpESP-1.4beta1/survey.php:1) in > /var/www/html/appll/phpESP-1.4beta1/admin/include/lib/espauth.inc on line 69 > [ ID utilisateur ou mot de passe incorrect. Votre compte est > désactivé/expiré. ] > --- > (this error message tell me than User ID expired / the account expired ) > > So i decide to try another method: > > 2/ rather than a link, i make a submit button, > > <form action="http://myhost.mydomain.com/phpesp/public/handler.php" > method="post"><input type=hidden name="sid" value="13"><input > type=submit value="nameofsurvey"></form> > > > It works well with a public survey, but not with a private one. > A authentification pop-up appears, but never succeed ; > (it always ask to me authentificate me) > > 3/ I've finally decided to make a button opening a new window with this > code: > <form target="_new" > action="http://myhost.mydomain.com/phpesp/public/handler.php" > method="post"><input type=hidden name="sid" value="13"><input > type=submit value="nameofsurvey"></form> > > > AND THIS WORK! > > So i'm asking you this question, > > What is the method to deploy private survey ? > > Thanks. > > > _______________________________________________ > phpESP-general mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/phpesp-general > |