הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   מה לא בסדר בסקריפט הזה....? :/ (https://hosts.co.il/forums/showthread.php?t=25121)

Xire 28-06-06 08:52

מה לא בסדר בסקריפט הזה....? :/
 
טוב אנשים אני צריך סקריפט שידרוש סיסמא לפני מעביר לעמוד מסויים.
מצאתי את הסקריפט הבא:

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 קוד:

liora 

זה הסיסמא

והסקריפט לא עובד :( הוא כותב שהעמוד לא נמצא ומעביר לעמוד אחר ולא מה שבקשו ממנו.
לפי מה שהבנתי הבעיה היא בשורה הזאת:
PHP קוד:

<form action="<%= request.servervariables("script_name") %>" method="POST"

הבעיה שאני לא מוצא אותה.


מישהו יכול להגיד לי מה לא בסדר בו?
או
מה לעשות בשביל שהוא יעבוד?
או
לתת לי סקריפט אחר?

meshuga 28-06-06 09:07

כוס חלב ועוגיה גם?.......
נעול+אזהרה.
קרא חוקים, אסור לבקש סקריפטים.


כל הזמנים הם GMT +2. הזמן כעת הוא 08:48.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ