Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

formmail.asp save problem

Status
Not open for further replies.

roeiboot

Technical User
Feb 10, 2002
241
US
oi~

i'm using formmail.asp and everything works except (you knew that was coming :} it won't "save" the comment part in the email.. any idea ?

code:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">[/URL]
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Contact Brothers Office Supply</title>
<meta name="description" content="Brothers Office Supply - for all your office supply needs!">
<meta name="keywords" content="Brothers Office Supply Office Furniture Janitorial Medical School Color Copier Fax Services Commercial Shipping Counter UPS FedEx DHL USPS Printing Services Rubber Stamps Laminating Business Cards letterheads Engraving Pens Signs Name Badges Paper Drilling Cutting Services">
<link href="bo.css" rel="stylesheet" type="text/css">

</head>

<body>
<!-- Outermost table -  line around table-->
<table width="800" border="0" align="center" cellpadding="0">
  <tr>
    <td>
<!-- Main table -->
<table width="798" height="100%" align="center" cellpadding="0" cellspacing="3" background="media/background.jpg" bgcolor="#ffffff">
  <tr background="media/bar2.jpg">
  <!-- Top Links -->
    <td height="50" colspan="2" align="center" background="media/bar2.jpg"><a href="index.html" class="toplink">Home</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="directions.html" class="toplink">Directions</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="contact.html" class="toplinkon">Contact</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="store.html" class="toplink">Shop BrothersOffice.com</a></td>
  </tr>
  <tr>
  <!-- left column -->
    <td width="135" valign="top"><p align="left"><img src="media/logo.gif" width="130" height="203"></p>
    <p align="left" class="address">4013 Main Street<br>
      Hilliard Ohio 43026</p>
    <p align="left" class="address">Phone: 614.777.1560<br>
    Fax: 614.777.1739</p>
    </td>
    <td>
	<!-- Table for main area - 2 columns -->
	<table width="665"  border="0" align="center" cellpadding="0">

      <!-- row for Flash -->
	  <tr valign="top">
        <td height="30" colspan="6">

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  codebase="[URL unfurl="true"]http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"[/URL]
  ID=flash WIDTH=332 HEIGHT=18>
<PARAM NAME=movie VALUE="flash.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=loop VALUE=true>
<EMBED src="flash.swf" loop=true quality=high
  WIDTH=332 HEIGHT=18 TYPE="application/x-shockwave-flash"
  PLUGINSPAGE="[URL unfurl="true"]http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">[/URL]
</EMBED>
</OBJECT>
<BR>
<img src="media/line.gif" width="665" height="1"></td>
        </tr>
      <tr valign="top">
	  <!-- Column 1 - map -->
        <td colspan="6" align="center">
          <h3 class="indent"> We welcome your suggestions, comments or questions.</h3>
          
<form action="[URL unfurl="true"]http://www.brothersoffice.com/cgi-bin/formmail.asp"[/URL] method="post"> 
<input type="hidden" value="comments@brothersoffice.com" name="recipient">
<input type="hidden" name="subject" value="Feedback from Brothers Office Supply web site">
<input type="hidden" name="redirect" value="[URL unfurl="true"]http://brothersoffice.com/thanks.html">[/URL]
<input type="hidden" name="sort" value="order:firstname,lastname,email,comments">
<input type="hidden" name="required" VALUE="comments"> 
                  <p class="indent">&nbsp; </p></td>
				  	
	  <!-- Column 2 - Directions -->
      </tr>
	  <!--    Copyright --> 
      <tr valign="top">
        <td width="33" align="right">&nbsp;</td>
        <td width="100" align="right">First Name:&nbsp;&nbsp; </td>
        <td width="187" align="left"><input name="realname" type="text" id="firstname" size="25" maxlength="25"></td>

        <td width="83" align="right">Last Name:&nbsp;&nbsp; </td>
        <td width="201" align="left"><input name="realname" type="text" id="lastname" size="25" maxlength="25"></td>
        <td width="51" align="left">&nbsp;</td>
        <td width="1">&nbsp;</td>
       
      </tr>
      <tr valign="top">
        <td align="right">&nbsp;</td>
        <td align="right">Email:&nbsp;&nbsp; </td>
        <td colspan="3" align="left"><p>
            <input name="email" type="text" id="email" size="25" maxlength="50">
            <br>
            If you would like a response be sure to include your email address.</p>
          <p>&nbsp;</p></td>
        <td align="left">&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr valign="top">
        <td align="right">&nbsp;</td>
        <td align="right">Comments:&nbsp;&nbsp; </td>
        <td colspan="1" align="left">
        <td valign="top" align="left">
        <textarea rows="5" id="Comments" cols="30"></textarea></td>

        <!--  <textarea name="comments" id="comments" cols="58" rows="5"></textarea> -->

      </td>
        <td>&nbsp;</td>
      </tr>
      <tr valign="top">
        <td align="right">&nbsp;</td>
        <td align="right">&nbsp;</td>
        <td colspan="4" align="left"><INPUT TYPE="SUBMIT" NAME="Submit" VALUE="Send"></form></td>
        <td>&nbsp;</td>
      </tr>
      <tr valign="top">
        <td align="right">&nbsp;</td>
        <td align="right">&nbsp;&nbsp; </td>
        <td align="left">&nbsp;</td>
        <td colspan="3" align="right">&nbsp;&nbsp; <span class="bottomlink">&copy; 2005 BrothersOffice.com. All rights reserved.&nbsp;</span></td>
        <td>&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>
</td>
  </tr>
</table>
</body>
</html>

thanks in advance.
 
When forms are processed the values are sent using the "name" attribute as the variable name and the content as the value. In this case your comments tag does not have a "name" attribute.

Also, it's bad practice to start a tag in one level and end it in an entirely differant level (form tag). The better you form your document the less the end browser has to guess about your intentions and the more consistent ad faster the output is displayed to the end user. In this case it won't make a big difference, but it's a good practice to get into. I'd suggest moving the form tag outside the table (as well as the end form tag) so that the entire table that it is currently embedded in is actually surrounded by the form tags.

-T

barcode_1.gif
 
thanks, changed that ile to:
Code:
<textarea name="comments" type="text" id="comments" rows="5" cols="30"></textarea></td>
but it's still not working...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top