הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   בעיה בהכנסת נתונים ב- access עזרה בבקשה (https://hosts.co.il/forums/showthread.php?t=55423)

slesh.co.il 21-10-07 13:24

בעיה בהכנסת נתונים ב- access עזרה בבקשה
 
קוד:


<html>
<head>
 
</head>
 
<body>
 
<form action="in.asp" name="myform" method="post" onsubmit="return testForm(myform)">
שם פרטי
<input type="text" name="f_name">
שם משפחה
<input type="text" name="l_name">
תעודת זהות
<input type="text" name="id" size="30">
<input type="submit" name="send" value="שלח">
<input type="reset" name="reset" value="אפס">
</form>
</body>
 
</html>

שזה בעצם הדף של הטופס
עכשיו הדף של ה-
asp
הוא כזה
קוד:



<%
f=Request.Form("f_name")
l=Request.Form("l_name")
i=Request.Form("id")
 
sq = "insert into personal_data (f_name,l_name,id) values("&id&","&f_name&","&l_name&")"
path=Server.mappath("stam.mdb")
set con=Server.createObject ("ADODB.Connection")
con.open "driver={ Microsoft Access Driver (*.mdb)}; DBQ=" & path
con.Execute sq
%>

עשיתי בדיוק כמו שהספר.. ממדריכים.. וזה לא נותן לי לא מבין מה הבעיה
זה השגיאה שכותב לי בדפדפן
שאני לוחץ על
"שלח"

HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services

Technical Information (for support personnel)
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/in.asp, line 13
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 1.1.4322)
Page:
POST 48 bytes to /in.asp
POST Data:
f_name=ujhgj&l_name=hgghj&id=hjyg&send=%F9%EC%E7
אשמח אם מישהו יעזור לי תודה רבה


כל הזמנים הם GMT +2. הזמן כעת הוא 22:09.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ