<% if request.querystring("name")="" then response.write "<body>" &_ "<form action=data.asp method=get>" &_ "<font size=5>ID: </font>" &_ "<input name=id type=text> <br>" &_ "<font size=5>full name: </font>" &_ "<input name=name type=text> <br>" &_ "<font size=5>Tel: </font>" &_ "<input name=tel type=text> <br>" &_ "<input type=submit value=הקש>" &_ "</form>" else set c=server.createobject("adodb.connection") c.open "dsn=data;" i = request.querystring("id") n = request.querystring("name") t = request.querystring("tel") c.execute "insert into data values('" & i & "','" & n & "','" & t & "')" c.close set c=nothing response.write "<body><font size=5> Welcome " & n & " </font></body>" end if %>
|
זה עובד אצלי מעולה בבית ספר ואצלי בבית זה לא עובד. עכשיו זה כותב שיש איזשהי בעיה ב-ODBC. אבל הגדרתי אותו!
אצלי בבית ספר WIN 95 ובבית XP. אוליי יש איזשהו הבדל או משהו אחר שצריך לעשות ואני לא יודע.
תודה רבה מראש לעוזרים !