|
|
# 12 |
|
הוסטסניון
|
רגע - במדריך בוואבמסטר רשום :
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
%>
__________________
אימיל \ מסן : amirs91 [at] gmail.com Last edited by amirs_5; 14-10-06 at 19:32.. |
|
| חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים) | |
|
|