07-04-2006, 13:05
|
|
|
חבר מתאריך: 07.04.06
הודעות: 3
|
|
בעיה בASP
בניתי שני דפי ASP שבאחד אני ממלא נתונים ושולח והדף השני דואג להכניס את הנתונים לאקסס
אבל כשאני מבצע שליחה הדף רושם לי בסוף תודה שהצתרפת אבל כשאני בודק במסד הנתונים אז הדף לא מבצע הכנסה למסד הנתונים אם מישהו יכול לעזור תודה רבה!!!
ולהלן הקוד של הדף השני
עשיתי קישור דרך הDSN בוינדוס וכול...והדפים נמצאים בIIS
<html>
<body bgcolor=yellow dir=rtl>
<%
set c=Server.createObject("adodb.connection")
dn = "DRIVER=Microsoft Access Driver (*.mdb); DBQ="& Server.MapPath("match1.mdb")
c.open dn
fname=Request.Form("fname")
age=Request.Form("age")
gender=Request.Form("gender")
telephone=Request.Form("telephone")
location=Request.Form("location")
sql="insert into people values('"&fname&"','"&age&"','" &gender &"','" &telephone&"','"&location&"')"
'Response.Write sql
'c.Execute sql
c.close
set c=nothing
%>
תודה שהצטרפת
</body>
</html>
|