שלח תשובה

זירת השאלות

533
צפיות
4
תשובות

למה לא עובד ??

,‏ 4 במרץ, 2004

עבדתי כלכך קשה..
על לכתוב את כל הקוד הזה, ובסוף הוא מראה לי הודעת שגיאה
מה הולך פה ?

chat.asp

<%@Language=VBScript%>
<p align=right>
<font size=2 face=arial>
<%=application("chat")%>
</font>
</p>


chatframe.htm


<%
if session("secret")="ok" then
response.write "<html><head><title>דף ניהול</title></head><frameset rows=70%,* border=1><frame src=chat.asp><frame src=input.asp></frameset></html>"
else
response.write "Access denied"
end if
%>


enter.asp

<%@Language=VBScript%>

<%
if isempty(requset.form("secret_name")) then
response.write "<fonr size=5>הכנס סיסמא – " &_
"<form method=post><input type=password name=secret_name>" &_
"<input type=submit> </form>"
response.end
else
if request.form("secret_name")="pass" then
session("secret")="ok"
response.write "<meta http-equiv=refresh content=2;URL=chatframe.htm>
else
response.write("Worng password")
end if
end if
%>


input.asp

<%@ Language=VBScript%>

<%
if then
iSaid = request.form("say")
application("chat")=application("chat")_
& iSaid & "<br><br>"
end if%>
<%if session("secret")="ok" then
response.write "<form method=post><table><td>ההודעה שלך -</td><td><textarea name=say rows=100 cols=200><%=application("chat")%></textarea></td><tr><td><input type=submit value="שלח הודעה"></td></tr></table></form>"
else
response.write "Access denied"
end if
%>


טוב אולי זה לא מראה ממש הודעת שגיאה, אבל זה גם לא עובד !

תגיות:

4 תשובות

  1. Nezek הגיב:

    אופס..
    מעט פירוט ששכחתי –
    זה כמובן מערכת הודעות קטנה..
    שמבוססת על צאט בasp,
    הוספתי לוגין וכאלה..
    אולי זאת הבעיה, לא יודע

    עזרה בבקשה, אסף

  2. אוריקס הגיב:

    אני לא הולך לעבור על הכל.
    אבל אתה מבצע פקודות ASP בדף HTML.

  3. טוב,
    בדרך כלל העמוד שמראה את הצאט ואת שליחת ההודעה יהיה בhtml אם לא יהיו משתמשים והכל אבל כנראה לקחת את הקוד הבסיסי מאאתר הוא ספר כלשהוא ושיפצת אותו לכן נגרמה הטעות הזו

  4. Nezek הגיב:

    חח לא שמתי לב
    שעשיתי את הasp בhtml

שלח תשובה