|
From: Sara V. F. <sv...@it...> - 2003-10-13 20:06:09
|
Hi everyone,
I am totally confused about how to allow respondents to authenticate
themselves. Where am I supposed to put the commented out example that
is in handler_prefix.php? Do you have any tips. I greatly appreciate
your help.
Sara
# $Id: handler-prefix.php,v 1.17 2003/03/04 21:42:33 jimmerman Exp
/* When using the authentication for responses you need to include
* part of the script *before* your template so that the
* HTTP Auth headers can be sent when needed.
*
* So, create your template file with this as the *first*
* line:
* <?php $sid=<SID>; include('.../phpESP/public/handler-prefix.php');
?>
* then where you want to include the actual survey use this
* line:
* <?php inlcude('.../phpESP/public/handler.php'); ?>
*
* For example, here is a very small template: */
$sid=42; include('public_html/mastersPro/public/handler-prefix.php');
?>
<html>
<head><title>Example.com</title></head>
<body>
<table border="0" width="800">
<tr><td colspan="2"><img src="example-banner.png"
border="0" width="800" height="42"></td></tr>
<tr>
<td><?php
include('http://polaris.it.rit.edu/~svf4344/mastersPro/public/handler-prefix.php');
?>
</td>
</tr>
<tr><td colspan="2"><p align="right"><font size="-2">
Copyright © 2003. Example.com</font></p></td></tr>
</table>
</body>
</html>
|