Ask a Question related to Dreamweaver AppDev, Design and Development.
-
amelunks #1
Need more help with email form
I recreated my page to be an .asp page and it does now load into the browser.
When I fill in the information and hit send. Internet Explore sends the error
message...
Microsoft VBScript runtime error '800a000d'
Type mismatch: '[string: "cindy"]'
/vicom124/ContactUsTest.asp, line 28
I'm new to this and just not seeing where there is an error? Any help is
greatly appreciated.
Thanks,
Skeeter
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%
if Request.Querystring("isSubmitted") = "yes" then
Dim nameVar, emailVar, tsubject, tMessage
Dim objCDO
nameVar = Request.QueryString("Name")
emailVar = Request.QueryString("Email_Address")
tsubject = Request.QueryString("Subject")
tMessage = Request.QueryString("Message")
'this is where code is inserted to invoke DCONTS
'This line invokes the object using the name objCDO
Set objCDO=Server.CreateObject("CDONTS.NewMail")
objCDO.From = emailVar
objCDO.To = "sideline@wi.rr.com"
'to cc someone
'objCDO.CC = "emailaddress@email.com"
'to blind copy someone
'objCDO.Bcc = "emailaddress@email.com"
objCDO.Subject = tsubject
objCDO.Body = "Name " & nameVar
objCDO.Email_Address = "Email Address " & emailVar
objCDO.Message = "Message " & tMessage
'BodyFormat=1 for text format, BodyFormat=0 for html format
objCDO.BodyFormat=1
objCDO.MailFormat=1
objCDO.Send
ConfirmMsg = "Your message has been sent. Thanks for submitting your comments."
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Contact Us</title>
<style type="text/css">
<!--
.style3 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; }
-->
</style>
</head>
<body>
<% if ConfirmMsg <> "" then %>
<h3><%=ConfirmMsg %></h3>
<% end if %>
<form action="../ContactUsTest.asp" method="get" enctype="text/plain"
name="input_form" id="input_form">
<table width="700" border="0" cellspacing="10" cellpadding="0">
<tr>
<td align="right"><span class="style3">Name:</span></td>
<td><input name="Name" type="text" id="Name" size="30"
maxlength="50"></td><br>
</tr>
<tr>
<td align="right"><span class="style3">Email Address:</span></td>
<td><input name="Email_Address" type="text" size="30"
maxlength="50"></td>
</tr>
<tr>
<td align="right"><span class="style3">Subject:</span></td>
<td><input name="Subject" type="text" id="Subject" size="50"
maxlength="80"></td>
</tr>
<tr>
<td align="right" valign="top"><span class="style3">Message:</span></td>
<td><textarea name="Message" cols="50" rows="10"
id="Message"></textarea></td>
</tr>
<tr>
<td> </td>
<td><input name="isSubmitted" type="hidden" value="yes"></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="Submit"></td>
</tr>
</table>
</form>
</body>
</html>
amelunks Guest
-
email form
Hi people Can anyone tell me why my email form will work fine when I preview it seperatly but not when embedded within my site, I mean check out... -
PES Email Form
Does anyone know what's happened to Gregory Peacock? I need to get hold of the PES Email Form - I've stupidly lost my copy of it and I went back to... -
Connenting email form to an email account
:( I am at a mental brickwall. I created a form, created two text fields and a "log in" button. What I want to have happen is when a person goes to... -
Form without Email
I trying to make a form without using the email from the sender, what i need is a script that send the form directly to my email without using the... -
Email a form
I am trying to email information that users enter on my website using a submit button. However, it is not working. Is there a simple way to do...



Reply With Quote

