Click to See Complete Forum and Search --> : Password Protected Results: I'm So Close


surge42
01-13-2004, 12:45 PM
A web friend of mine built password protection into this script so that you can not view the results with out first sending a password to the script.
he also built the form that sends the password to the script. The problem is I failed to make a backup of that form.

As far as I know the script is working ok because the script returns the "Invalid Password" html when you put in the following path in the browser
h**p://www.mysite.com/cgi-bin/survey/survey.cgi?survey_name=survey[/url]

I just cant get it it accept the password and its driving me nutz.

Here's what the form looks like that shoots the password to the script.

<table width="417" border="2" align="center" cellpadding="3" cellspacing="3">
<tr>
<td width="399" align="center" valign="top" bgcolor="dddddd"><font size="3" face="Arial, Helvetica, sans-serif"><strong><br>
<font size="4">To See Vote Results <br>
Please Enter Your Password </font><br>
</strong></font>
<form name="form" method="POST" ACTION="http://www.mysite.com/cgi-bin/survey/survey.cgi?survey_name=survey">

<!-- The problem is either the input name or id or the action path. This is my educated guess.-->

<input name="password" type="text" id="password">
<br>
<br>
<INPUT name="SUBMIT" TYPE="SUBMIT" VALUE="submit">

</form><input type="hidden" name="survey_name" value="password">
<font size="3" face="Arial, Helvetica, sans-serif"><strong> </strong></font></td>
</tr>
</table>

The updated script is attached to this message.
Let me know what you think the solution is to getting the results password protected.