Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Dec 2005
    Posts
    702
    Thanks
    0
    Thanked 0 Times in 0 Posts

    asp form give problem - try with "test"

    I build a webform at
    http://www.kolectivavillas.com/papho...contact_us.asp
    this form after press submit , appear error message, try ("test").

    processorContactUs.asp
    Code:
    <%@ Language=JScript %>
    <%
     
    /* recipients */
    var email = Request.Form('Email');
    var to = "a080725@cytanet.com.cy,styllianou_d@hotmail.com"; 
     
    var subject = "ContactUs Request - Paphos-Land.com"; // new form field 
     
    Session("Name") = Request.Form('Name');
    Session("phone") = Request.Form('Telephone');
    Session("Message") = Request.Form('Message');
    Session("email") = Request.Form('Email');
    %>
    <!-- #include file="ContactUsRequest.asp" -->
    <%
    var myMail=CreateObject("CDO.Message");
    myMail.Subject=subject;
    myMail.From="info@paphos-land.com";
    myMail.To=to;
    myMail.CreateMHTMLBody("ContactUsRequest.asp");
    myMail.Send();
     
    myMail.To = email;
    myMail.CreateMHTMLBody("ContactUsRequest.asp");
    myMail.Send();
     
    %>
    ContactUsRequest.asp
    Code:
    <%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
    <%@ Language=JScript %>
    <%
    
    var Name = Session("Name");
    var phone = Session("phone");
    var Message = Session("Message");
    var email = Session("email");
    %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>ContactUs Confirmation</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <style type="text/css">
    <!--
    .style4 {font-size: 14px}
    .style6 {
    	font-family: Arial, Helvetica, sans-serif;
    	font-weight: bold;
    	font-size: 12px;
    }
    .style11 {
    	font-size: 12;
    	font-weight: bold;
    	font-style: italic;
    }
    .style12 {font-size: 12}
    .style13 {font-size: 12px}
    .style14 {font-size: 16px}
    .style15 {
    	color: #0000FF;
    	font-weight: bold;
    }
    .style16 {
    	font-family: Arial, Helvetica, sans-serif;
    	font-weight: bold;
    	font-size: 14px;
    	font-style: italic;
    }
    -->
    </style>
    </head>
    
    <body>
    <div align="center"><!-- #BeginLibraryItem "/Library/top.lbi" --><table width="606" height="47" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" id="AutoNumber1" style="border-collapse: collapse">
        <tr>
          <td align="center" height="15" colspan="2" bgcolor="#C0C0C0">
    <p align="center" style="margin-top: 0; margin-bottom: 0">
    <font face="Arial">
    <a href="http://www.Paphos-Land.com" style="text-decoration: none"><font size="5">www.Paphos-Land.com</font></a></font><font face="Arial" size="5">&nbsp; 
    <b>Land&nbsp; for&nbsp; Sale in Paphos</b></font></p>
          </td>
        </tr>
        <tr>
          <td width="128" height="17" align="center" bgcolor="#0000FF"><img src="images/map_pafos_off.gif" alt="cy-pafos map" width="94" height="63" /></td>
          <td width="478" height="17" align="center" bgcolor="#0033FF"><span class="style1">
          <font face="Arial">We deal mainly in plots in Polis Area (North
          Pafos).</font></span></td>
        </tr>
        <tr bgcolor="#3399FF">
          <td height="15" colspan="2" align="center"><font face="Arial"><strong><b><font face="Arial" size="2"><span style="FONT-WEIGHT: normal; FONT-SIZE: 10pt; FONT-FAMILY: Arial"><a href="index.html">Home</a> - <a href="about_us.htm">About
                        Us</a> - </span></font></b></strong></font><font face="Arial" size="2"> <a href="land.htm">Plot
                        / Land</a></font><font face="Arial"><strong><b><font face="Arial" size="2"><span style="FONT-WEIGHT: normal; FONT-SIZE: 10pt; FONT-FAMILY: Arial"> - <a href="terms.htm">Terms</a> - <a href="links.htm">Links</a> - <a href="contact_us.htm">Contact
                        Us</a></span></font></b></strong></font></td>
        </tr>
      </table>
    <div align="center"></div>
    <!-- #EndLibraryItem --><p><b><span class="style14"><font face="Arial">&quot;ContactUs
              Request&quot; -
      Form  Confirmation&nbsp; -&nbsp; <a href="http://www.paphos-land.com/"> www.paphos-land.com</a></font></span></b></p>
      <p class="style15"><font face="Arial">You have successfully submitted the below info </font></p>
      <p><strong><font face="Arial"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></strong></p>
      <table width="576" border="0" cellspacing="2" cellpadding="2" summary="confirm table data">
        <tr class="style4">
          <td width="190"><div align="center" class="style6 style11 style4">        Name:</div></td>
          <td width="372"><div align="center" class="style11 style6 style4">        <%= Name %></div></td>
        </tr>
        <tr class="style4">
          <td><div align="center">        <span class="style13"><span class="style13"><span class="style13"><span class="style13"><span class="style4"><span class="style4"></span></span></span></span></span></span></div></td>
          <td><div align="center">        <span class="style13"><span class="style13"><span class="style13"><span class="style13"><span class="style4"><span class="style4"></span></span></span></span></span></span></div></td>
        </tr>
        <tr class="style4">
          <td><div align="center" class="style16">        Email:</div></td>
          <td><div align="center" class="style16">        <%= email %></div></td>
        </tr>
        <tr class="style4">
          <td><div align="center">        <span class="style13"><span class="style13"><span class="style13"><span class="style13"><span class="style4"><span class="style4"></span></span></span></span></span></span></div></td>
          <td><div align="center">        <span class="style13"><span class="style13"><span class="style13"><span class="style13"><span class="style4"><span class="style4"></span></span></span></span></span></span></div></td>
        </tr>
        <tr class="style4">
          <td><div align="center" class="style16">        Phone:</div></td>
          <td><div align="center" class="style16">        <%= phone %></div></td>
        </tr>
        <tr class="style4">
          <td><div align="center">        <span class="style13"><span class="style13"><span class="style13"><span class="style13"><span class="style4"><span class="style4"></span></span></span></span></span></span></div></td>
          <td><div align="center">        <span class="style13"><span class="style13"><span class="style13"><span class="style13"><span class="style4"><span class="style4"></span></span></span></span></span></span></div></td>
        </tr>
        <tr class="style4">
          <td><div align="center" class="style16">        Message:</div></td>
          <td><div align="center" class="style16">        <%= Message %></div></td>
        </tr>
        <tr class="style4">
          <td><div align="center">        <span class="style13"><span class="style13"><span class="style13"><span class="style13"><span class="style4"><span class="style4"></span></span></span></span></span></span></div></td>
          <td><div align="center">        <span class="style13"><span class="style13"><span class="style13"><span class="style13"><span class="style4"><span class="style4"></span></span></span></span></span></span></div></td>
        </tr>
      </table>
      <p><strong><font face="Arial">We will reply to your message within two days. </font></strong></p>
      <!-- #BeginLibraryItem "/Library/top-bottom.lbi" -->
    <style type="text/css">
    <!--
    .style12 {color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: xx-small;}
    .style13 {
    	font-family: Arial;
    	font-size: 10pt;
    }
    -->
    </style><div align="center">
      <p><font face="Arial"><strong><b><font face="Arial" size="2"><span style="FONT-WEIGHT: normal; FONT-SIZE: 10pt; FONT-FAMILY: Arial"><a href="index.html">Home</a> - <a href="about_us.htm">About
                    Us</a> - </span></font></b></strong></font><font face="Arial" size="2"> <a href="land.htm">Plot
                    / Land</a><font face="Arial"><strong><b><span style="FONT-WEIGHT: normal; FONT-SIZE: 10pt; FONT-FAMILY: Arial"> - <a href="terms.htm">Terms</a> - <a href="links.htm">Links</a> - <a href="contact_us.htm">Contact
      Us<br />
                    </a></span></b></strong></font></font><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><span class="style12">Copyright
        © 2007&nbsp;</span></span><span class="style12"> Paphos-Land.com
        @ POLIS&nbsp;&nbsp; All
      rights reserved</span></p>
      </div>
    <!-- #EndLibraryItem --></div>
    </body>
    </html>

  • #2
    Senior Coder BarrMan's Avatar
    Join Date
    Feb 2005
    Location
    Israel.
    Posts
    1,644
    Thanks
    69
    Thanked 83 Times in 82 Posts
    In your include file remove the language declaration. You can't use the language declaration more than once.

  • #3
    Regular Coder
    Join Date
    Dec 2005
    Posts
    702
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The error see below appears after removing language declaration from ContactUsRequest.asp,
    well ?

    error:
    More information

    This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying.

    For more information about HTTP errors, see Help.


  •  

    Posting Permissions

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