07-08-2005, 23:52
|
|
|
חבר מתאריך: 09.07.05
הודעות: 81
|
|
2 שאלות,1/בעיה עם אי יצירת קשר עם דף asp ושנייה אחרי שאלה נוספת,אחרי שהבעיה 1 תפטר
הסבר הנה השגיאה:
Please try the following:
Click the Refresh button, or try again later.
Open the 127.0.0.1 home page, and then look for links to the information you want.
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services
מה הבעיה???
קוד ה html:
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
<TITLE></TITLE>
</HEAD>
<BODY bgcolor="#c0c0c0" text="#0000ff">
<FORM METHOD=post id=formjoin name=formjoin action="joinpageasp.asp">
<P dir="rtl"><span lang="he"><font size="6" color="#ff0000">נא מלא/י את הפרטים
הבאים:</font></span></P>
<P dir="rtl"><span lang="he">שם פרטי:
<INPUT id=text1 style="WIDTH: 325px; HEIGHT: 22px" size=41
name=text1> </span></P>
<P dir="rtl"><span lang="he">שם משפחה:
<INPUT id=text2 style="WIDTH: 311px; HEIGHT: 22px" size=38
name=text2> </span></P>
<P dir="rtl"><span lang="he">גיל: <INPUT
id=text3 style="WIDTH: 47px; HEIGHT: 22px" size=5 name=text3></span></P>
<P dir="rtl"><span lang="he">מיקום בארץ:
<INPUT id=text4 style="WIDTH: 306px; HEIGHT: 22px" size=39
name=text4> </span></P>
<P dir="rtl"><span lang="he">הוט אנלוגי
/הוט דיגיטלי / יס:
<SELECT id=select1 style="WIDTH: 217px" name=pack>
<option value="" selected>
<option value="Hot_digital">Hot digital
<option value="Hot_analog">Hot analog
<option value="yes">Yes
<option value="non_package">nothing</option>
</SELECT>
</span></P>
<P dir=rtl>
<input type="reset" value="ניקוי שדות"></P>
<P dir=rtl><INPUT id=submit1 style="LEFT: 389px; TOP: 344px" type=submit value="שלח" name=Submit></P>
</FORM>
</BODY>
</HTML>
קוד דף ה asp:
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<%
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open app & "db.mdb"
sql="INSERT INTO onlytable (ID,privetn"
sql=sql & "privetf,age,locationc,companys)"
sql=sql & " values "
sql=sql & "('" & Request.Form("text1") & "',"
sql=sql & "('" & Request.Form("text2") & "',"
sql=sql & "('" & Request.Form("text4") & "',"
sql=sql & "(" & Request.Form("text3") & ","
sql=sql & "'" & Request.Form("pack") & "')"
on error resume next
conn.Execute sql,recaffected
if err<>0 then
Response.Write("No update permissions!")
else
Response.Write("<h3>" & recaffected & " record added</h3>")
end if
conn.close
%>
</BODY>
</HTML>
שאלה 2:
אחרי שדף השרת asp יגמור את הפעולה,אני מעוניין להעביר את הדפדפן לדף html אחר לדוגמא:
viewjoined.html
איך עושים זאת מצד השרת או הלקוח ואם איזו פקודה?
(קישור סטנדנרטי או באיזו שיטה)
|