יש לי דף HTML להתחברות שנקרא members.html
יש דף ASP שמקשר למסד נתונים find.asp [במסד יש 2 טבלאות במקרה הזה עובדים עם RTable ]
ויש את המסד נתונים DB.mdb
הקודים:
members.html
find. aspקוד:<form action=find.asp method=post> <input type=text name=user> input type your name <br> <input type=password name=pass1> input type your password <br> <input type=submit value="send it">
קוד:<% name=request.form("user_name") pas=request.form("password") Set con=Server.CreateObject("ADODB.connection") Set rec=Server.CreateObject("ADODB.Recordset") con.open "PROVIDER=Microsoft.Jet.OLEDB.4.0; DATA SOURCE=" & Server.MapPath ("DB.mdb") sqlstr="select * from RTable WHERE (user='"+name+"'and pass1='"+pas+"')" rec.open (sqlstr),con if not rec.EOF then session("member")="ok" session("name")=name response.redirect ("index1.html") else Response.Write("<body bgcolor=#4433aa><center><font color='red'>הפרטים שהוזנו אינם במאגר</font><br><br>") Response.Write("<a href='log_in.html'>להרשמה") end if rec.Close() set con=nothing %>
וזו הטבלה:
זה לא אני עוסק בזה, חבר שלי מבקש עזרה בזה המממ תעזרו לו איכשהואונקווה גם קצת שזה יפעיל את הפורום =]




ונקווה גם קצת שזה יפעיל את הפורום =]
