www.webdeveloper.com
Results 1 to 3 of 3

Thread: ASP not showing up in IE Browser...

  1. #1
    Join Date
    Oct 2007
    Posts
    9

    ASP not showing up in IE Browser...

    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

  2. #2
    Join Date
    Mar 2006
    Posts
    591
    Can you give us the complete code?
    Is it working in another browser? Like FireFox?

  3. #3
    Join Date
    Oct 2007
    Posts
    9
    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>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles