نمایش نتایج 1 تا 40 از 85

نام تاپیک: اتصال asp به پایگاه داده در access

Threaded View

پست قبلی پست قبلی   پست بعدی پست بعدی
  1. #21
    کاربر دائمی
    تاریخ عضویت
    آذر 1388
    محل زندگی
    پاریس کوچولو
    سن
    36
    پست
    120

    نقل قول: اتصال asp به پایگاه داده در access

    سلام خدمت کاربر عزیزaryaei2000:
    می خواستم جلوی خط هایی رو که ********** گداشتم.یه توضیح کوچک بدید

    ممنون


     
    <html xmlns="http://www.w3.org/1999/xhtml" dir="rtl" lang="fa-IR">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <%Session.CodePage = 65001%>
    <%
    Set objConn = Server.CreateObject("ADODB.Connection")
    dbFldr = "C:\Inetpub\wwwroot\db1.mdb"
    strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
    strConn = strConn & (dbFldr )
    objConn.open strconn
    Response.Expires = -1000 'Makes the browser not cache this page
    Response.Buffer = True 'Buffers the content so our Response.Redirect will work
    Session("UserLoggedIn") = "" *************************

    If lcase(Request.ServerVariables("REQUEST_METHOD")) = "post" Then
    CheckLogin
    Else
    Response.Redirect "login.html"
    End If

    Sub CheckLogin
    username = replace(request.form("username"), "'", "''") ********************
    password = replace(request.form("userpwd"), "'", "''")
    strsql = "select username, password from users where username = '" & username & "' and password = '" & password & "';"
    Set rs = objconn.execute(strsql)
    If Not rs.Eof then
    Session("UserLoggedIn") = "true" **********************
    Response.Redirect "userpage.asp"
    Else
    Response.Write("Login Failed.<br><br>")

    End If
    rs.Close
    Set rs = Nothing
    End Sub
    %>
    آخرین ویرایش به وسیله aryaei2000 : پنج شنبه 01 بهمن 1388 در 18:26 عصر دلیل: ویرایش شکل ظاهری

برچسب های این تاپیک

قوانین ایجاد تاپیک در تالار

  • شما نمی توانید تاپیک جدید ایجاد کنید
  • شما نمی توانید به تاپیک ها پاسخ دهید
  • شما نمی توانید ضمیمه ارسال کنید
  • شما نمی توانید پاسخ هایتان را ویرایش کنید
  •