פורסם 2006 ביוני 719 שנים שלום יש לי את הדף asp הבא שמקשר בין ה-בסיס נתונים לבין האתר.עכשיו הנה הקוד:<html> <head> <title>Final club detail chack</title> <style> a { text-decoration : none ; color : #ad7b32 ; } a.pic { text-decoration : none ; color : black ; } font { color : #ad7b32 ; font-family : Arial ; font-size : 12 ; } font.star { color : red ; font-size : 12 ; font-family : Arial ; } body { background-color : black ; } </style> <% firstname = Request.Form("firstname") lastname = Request.Form("lastname") email = Request.Form("email") Function fixQuotes(theString) fixQuotes = Replace(theString,"'","''") End Function lastname = fixQuotes(lastname) firstname = fixQuotes(firstname) Set oConn = Server.CreateObject("ADODB.Connection") oConn.Open "Driver={Microsoft Access Driver (*.mdb)};" & _ "Dbq=" & Server.MapPath("db/clubMembers.mdb") & ";" Set oRS = Server.CreateObject("ADODB.Recordset") mySQL = "SELECT * FROM tClub WHERE 1=0" oRS.Open mySQL, oConn, 3, 3 oRS.AddNew oRS.Fields("firstname").value = firstname oRS.Fields("lastname").value = lastname oRS.Fields("email").value = email oRS.Update oRS.Close Set oRS = Nothing oConn.Close Set oConn = Nothing %> </head> <body> <br /> <font color="#ad7b32" size="3" face="ariel"> <table width="95%"> <tr><td bgcolor="#292929"> <font> <b> Final step </b> </font> </td></tr> </table> <br /> <br /> <table width="80%"> <tr><td width="30%"> <font> <b> First name :</b> <br /> <br /> </font> </td> <td> <font> <% =Request.QueryString("firstname") %> <br /> <br /> </font> </td> </tr> <tr><td width="30%"> <font> <b> Last name :</b> <br /> <br /> </font> </td> <td> <font> <% =Request.QueryString("lastname") %> <br /> <br /> </font> </td> </tr> <tr><td width="30%"> <font> <b> Email :</b> <br /> <br /> </font> </td> <td> <font> <% =Request.QueryString("email") %> <br /> <br /> </font> </td> </tr> <tr><td width="30%"> <font> <b> Country :</b> <br /> <br /> </font> </td> <td> <font> <% =Request.QueryString("country") %> <br /> <br /> </font> </td> </tr> <tr><td width="30%"> <font> <b> Phone number :</b> <br /> <br /> </font> </td> <td> <font> <% =Request.QueryString("phonenumber") %> <br /> <br /> </font> </td> </tr> <tr><td width="30%"> <font> <b> Icq number :</b> <br /> <br /> </font> </td> <td> <font> <% =Request.QueryString("icq") %> <br /> <br /> </font> </td> </tr> <tr><td width="30%"> <font> <b> Spoken language :</b> <br /> <br /> </font> </td> <td> <font> <% =Request.QueryString("language") %> <br /> <br /> </font> </td> </tr> <tr><td width="30%"> <font> <b> Gender :</b> <br /> <br /> </font> </td> <td> <font> <% =Request.QueryString("gender") %> <br /> <br /> </font> </td> </tr> <tr><td width="30%"> <font> <b> Birth Day :</b> <br /> <br /> </font> </td> <td> <font> <% =Request.QueryString("day") %> / <% =Request.QueryString("month") %> / <% =Request.QueryString("year") %> <br /> <br /> </font> </td> </tr> </font> </body></html>עכשיו הבעיה היא שאני ורשם את הנתונים בטופס והוא עושה הכל כמו שצריך בטבלה של ה-access הוא יוצר משתמשים אבל הפרטים שהכנסתי שהם שם משתמש ואימייל רקים כאילו לא הכנסתי בטופס פרטים בכלל.תודה מראש לכל העוזרים!
ארכיון
דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.