Click to See Complete Forum and Search --> : ASP not showing up in IE Browser...


ciasecurity
10-31-2007, 09:54 AM
I'm trying to get a simple asp file to work, but it when I view it in my IE Browser, it does not show anything. Same problem as previous post, but much simpler code. Thanks for any help on this.


Code:

<%
response.write "Hello"
%>

I use Dreamweaver 4.0 to create my site.
My site is hosted on an FTP server.
I installed the IIS components.
I use IE 6.0 +
OS Windows XP

Terrorke
10-31-2007, 11:43 AM
Can you give us the complete code?
Is it working in another browser? Like FireFox?

ciasecurity
10-31-2007, 12:02 PM
This is what I'm trying to run in IE. When I run it on the server side, it just blinks when I click submit. When I view it in IE through Dreamweaver it shows the code. At no time do I get aan email sent to me at: ciasecuritywebmaster@gmail.com. Thanks. (I did not try any other browser)


Code:

<%

if Request.Querystring("isSubmitted") = "yes" then



Dim fname, lname

Dim objCDO

fname = Request.Form("First Name")

lname = Request.Form("Last Name")

Set ObjSendMail = CreateObject("CDO.Message")

<!--Set objCDO = Server.CreateObject("CDO.Message") Old One using Server.CreateObject -->
<!--Set ObjSendMail = CreateObject("CDO.Message") -->

objCDO.From = "ciasecuritywebmaster@gmail.com"

objCDO.To = "ciasecuritywebmaster@gmail.com"

objCDO.Cc = ""

objCDO.Bcc = ""

objCDO.Subject = "Client Survey..."

objCDO.Body = "Name: " & fname & " " & lname "

objCDO.BodyFormat = 1

objCDO.MailFormat = 1



objCDO.Send


ConfirmMsg = "Thank you for completing our survey!"


end if


%>
<html>
<head>
<title>Online Survey</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<% if ConfirmMsg <> "" then %>

<h2><%= ConfirmMsg %></h2>

<% end if %>

<form name="Online Survey" method="post" action="SurveyPage.asp">

<p>&nbsp;</p>
<table width="67%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td colspan="3" height="42"><font face="Myriad Pro" size="4"><b>Online Survey</b></font></td>
</tr>
<tr valign="top">
<td colspan="3" height="42">
<p><font face="Tahoma" size="2">Hello,</font></p>
<p><font face="Tahoma" size="2">With the passing of our first year anniversary
of the APA merger and in our continuing effort to keep our clients happy,
we respectfully request that you take the time to fill out this survey.
Thank you.</font></p>
<font face="Myriad Pro" size="4"></font></td>
</tr>
<tr valign="top">
<td height="18" colspan="2"><font face="Tahoma" size="2">First Name
<input type="text" name="fname">
</font></td>
<td width="39%" height="18"><font face="Tahoma" size="2">Last Name
<input type="text" name="lname">
</font></td>
</tr>
</table>

<input type="hidden" name="isSubmitted" value="yes">

<p>&nbsp;</p>
<p align="center">
<input type="submit" value="Submit Form">
</p>
<p>&nbsp;</p>



</form>
</body>
</html>