Whooops - sorry, forgot to disable HTML
No, an HTML form is different to a data acces page. If several users tried to update at the same time you might get a poblem unless you used record locking.
Below is some ASP code I've used to update a guestbook which uses an HTML form and some ASP script to update a database.
HTH
Chris
==================================================
HTML FORM FILE
<HTML>
<HEAD>
<TITLE>Add Details</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function validate() {
if (document.putdetails.uname.value.length <1) {
alert("Please enter a name");
return false;
}
return true;
}
</SCRIPT>
</HEAD>
<BODY>
<H1>Add your comments</H1>
Please type your comments in the boxes below and then use the submit button to add your
comments to the guest book. You can view my guest book also, go back to the Guest book page
and select the read link
<FORM name="putdetails" action="putguests.asp" method="post" onSubmit="return validate();">
<BLOCKQUOTE>
<TABLE border="0">
<TR>
<TD>Enter your Name
</TD>
<TD><INPUT TYPE="text" size="50" name="uname"></INPUT></TD>
</TR>
<TR>
<TD>Enter your e-mail Address
</TD>
<TD><INPUT TYPE="text" size="50" name="email"></INPUT></TD>
</TR>
<TR>
<TD>Enter your Favourite Page
</TD>
<TD><INPUT TYPE="text" size="20" name="fpage"></INPUT></TD>
</TR>
<TR>
<TD valign="top">Enter any comments you would like to make
</TD>
<TD><TEXTAREA TYPE="text" name="comments" rows="5" cols="40"></TEXTAREA></TD>
</TR>
</TABLE>
</BLOCKQUOTE>
<INPUT TYPE="submit" value="Submit your Comments">
<INPUT TYPE="reset" value="Reset Form">
</P>
</FORM>
</BODY>
</HTML>
=====================================================
ASP PAGE - putguests.asp
<HTML>
<HEAD>
<TITLE>Guest book - Add your comments</TITLE>
</HEAD>
<BODY>
<CENTER>
<H1><FONT size=4>
Thanks for your comments
<FONT></H1>
<%
dim MyConnection
dim rsTitle
dim rtnval
set MyConnection = server.createobject("ADODB.Connection")
MyConnection.Open "DRIVER={Microsoft Access Driver (*.mdb)}; " & _
"DBQ=" & Server.Mappath("\MyDataBase.mdb")
putUname = request.form("uname")
putEmail = request.form("email")
putFpage = request.form("fpage")
putComments = request.form("comments")
v=1
strlength=len(putComments)
while v<strlength+1
if mid(putComments,v,1)="'" then
putComments=left(putComments,v-1) & " " & right(putComments, strlength-v)
end if
v=v+1
wend
SQLQuery = "insert into GuestBook values ('" & putUname &"','"& putEmail &"','"& putFpage &"','" & putComments & "')"
set rtnval = MyConnection.Execute(SQLQuery)
MyConnection.Close
%>
Back
</BODY>
</HTML>