Hello, I am starting to learn ASP and I ran into a problem that is completley stumping me. I can not figure out what is wrong! I keep on getting a "500 Internal server error"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
</head>
<body>
<%
' Declaring variables
Dim Date, News, sql_insert
' Receiving values from Form
Date = (Request.Form("Date"))
News = (Request.Form("News"))
data_source = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & _
Server.MapPath("update_news.mdb")
sql_insert = "insert into News (Date, News) values ('" & _Date & "', '" & News & "')"
' Creating Connection Object and opening the database
Set con = Server.CreateObject("ADODB.Connection")
con.Open data_source
con.Execute sql_insert
' Done. Close the connection
con.Close
Set con = Nothing
Response.Write "All records were successfully entered into the database."
%>
</body>
</html>
if you could please email me at
scoremaster25@msn.com or respond to this post with anything that could be wrong with this.