i have a form that i've written in html and need to user to be able to
submit it (more user entered information than just checking one box, but
less than a written essay). i understand that having the form "mailto:" is a
bad idea and i have access to asp, but i have no idea what to do. do i have
the file uploaded to a database or do i have it email it to me (and how is
this different than "mailto:")? basically i'm a bit lost as to what exactly
"asp" is and which option is best (easiest for me and most "foolproof" for
the user). any advice is appreciated.
What do you want to do -- insert it into a database, email it, or what?
Here's a sample that will ask for an e-mail address and then display it.
<% @Language="VBScript" %>
<% Option Explicit
Const cASP = "testform.asp"
Dim strEMA
strEMA = Request.Form("Email")
If strEMA <> "" Then
Response.Write "<b>" & strEMA & "</b>"
Response.End
End If
%>
<html>
<head>
<title><%=cASP%></title>
</head>
<body>
<form action="<%=cASP%>" method="post">
<b>Email Address :</b>
<input type="text" name="Email" size="30" maxlength="50">
<input type="submit" value="Submit">
</form>
</body>
</html>
If you want to insert it into a database then you'll have to find
out what your Web host supports -- perhaps MS-Access or SQL.
If you want to email it then you'll have to find out what your
Web host supports -- perhaps "ASPmail" or "CDONTS"...