טוב אנשים אני צריך סקריפט שידרוש סיסמא לפני מעביר לעמוד מסויים.
מצאתי את הסקריפט הבא:
PHP קוד:
<meta http-equiv="Content-Type"; content="text/html; charset=Windows-1255">
<title></title><body>
<center>
<font face="Arial, Helvetica, sans-serif"><b> <%
u_password=request.form("u_password")
´ Checks the value of the password being submitted
´ If the password is correct then the restrict access content will display
select case u_password
case "liora"
response.redirect("yellow.htm")
case else
´ Checks to see if the user has submitted a password or if one was submitted
´ If there is no value in u_password field or if it is anything
´ other than codeave then the input form will display
´ prompting the user to input the appropriate information
if (u_password <> "liora" and u_password <> "") then
´ If the password submitted in not null then display a message
´ informing the user that an incorrect password was supplied
response.write "הסיסמה שהכנסת אינה נכונה - נסה שינית"
end if
if (u_password <> "liora" and u_password = "") then
´ If the password submitted is not null then display a message
´ informing the user to enter a password
response.write ".אנא הכנס סיסמה"
end if
%> <br>
<br>
<br>
</b></font>
</center>
<form action="<%= request.servervariables("script_name") %>" method="POST">
<div align="center"><br>
<br>
<input type="password" name="u_password" length="20" maxlength="5">
<br>
<br>
<input type="Submit" value="שלח">
</div>
</form>
<div align="center"><%
end select
%> <br>
</div>
בכל מקום שרשום
זה הסיסמא
והסקריפט לא עובד

הוא כותב שהעמוד לא נמצא ומעביר לעמוד אחר ולא מה שבקשו ממנו.
לפי מה שהבנתי הבעיה היא בשורה הזאת:
PHP קוד:
<form action="<%= request.servervariables("script_name") %>" method="POST">
הבעיה שאני לא מוצא אותה.
מישהו יכול להגיד לי מה לא בסדר בו?
או
מה לעשות בשביל שהוא יעבוד?
או
לתת לי סקריפט אחר?