רגע - במדריך בוואבמסטר רשום :
http://www.webmaster.org.il/guide.as...&class=request
הערה ניתן לפנות לפריט באוספים של האובייקט Request ע" הקריאה:
קוד:
<%= Request("ItemName")%>
במקרה כזה, השרת יחפש פריט מתאים בכל האוספים, בסדר הבא:
1. QueryString
2. Form
3. Cookies
4. ClientCertificate
5. ServerVariables
הראשון זה QueryString אז בשביל מה צריך להוסיף אותו למה שרשמת ?
עריכה:
אממ בכל מקרה הוספתי אותו ועדיין
כל הקוד :
קוד:
<%
Dim conn, SQLstr, fname, lname, wtf(2)
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Inetpub\wwwroot\asp\db1.mdb;"
fname = Request.Querystring("fname")
lname = Request.Querystring("lname")
problem = 0
wtf(0) = "Ok"
wtf(1) = "No Fname"
wtf(2) = "No Lname"
If Not fname Then problem = 1
If Not lname Then problem = 2
If problem = 0 Then
SQLstr="INSERT INTO members (fname,lname) VALUES ('"
SQLstr = SQLstr & fname & "','"
SQLstr = SQLstr & lname & "')"
conn.Execute SQLstr
Response.Write(wtf(problem))
Else
Response.Write(wtf(problem))
End If
conn.Close
Set conn = Nothing
%>