כמו שציינתי באשכול הקודם יש לי להגיש למחר פרויקט במחשבים ואני צריך שכאשר מישהו נרשם בטופס הרשמה שלי הנתונים יופיעו בטבלה של האקסס.זה מה שרשום בקובץ ASP שלי:
<script language="javascript">
<%
set con = Server.createObject("ADODB.Connection")
con.open "driver={Microsoft Access Driver (*.mdb)};DBQ=d:\hshome\mcompute\mcomp.dacho.co.il\---\table1.mdb"i=request.querystring("id")
f=request.querystring("fname")
l=request.querystring("lname")
e=request.querystring("email")
p=request.querystring("pass")
flag=1
%>
var error=""
<%
set r=con.execute("select*from table1 where id='"&i&"'")
if not r.eof then
%>
error=error+"השם משתמש קיים";
<%
flag=0
end if
set r=con.execute("select*from table1 where fname='"&f&"'")
if not r.eof then
%>
error=error+"השם שלך כבר נמצא במערכת";
<%
flag=0
end if
if flag then
sq="insert into table1 (lname,fname,email,id,pass) values ('"&i&"','"&f&"','"&l&"','"&e&"','"&p&"')"
con.execute sq
%>
alert("צורפת בהצלחה למערכת");
<%
else
%>
alert(error);
<%
end if
%>
</script>
השם של הקובץ אקסס הוא table1 וכל הID וה LNAME הם השמות של השדות שלי בקובץ HTML.
כשאני לוחץ על הקובץ ASP הוא רושם לי לא ניתן להציג דף זה.
מה הבעיה בקובץ??
תודה רבה!