Hi, I'm basically just trying to submit this whole page into an email when I press submit at the bottoM...any suggestions?

<%@ page language="java" %>
<%@ page import="trader.webservices.util.Utils" %>
<%@ page import="trader.webservices.data.UserInfoDAO" %>
<%@ page import="trader.webservices.data.UserDataVO" %>
<%@ page import="java.util.*" %>
<%@ page import="java.text.*" %>





	<%
	
	
	String theAcctName = UserInfoDAO.getAcctFromAgentId(request.getParameter("agentId"));
	
	String username = theAcctName;
	
	UserDataVO userData = null;
	userData = UserInfoDAO.getUserInfo(username);
	
	
	
	Date date = new Date();
	SimpleDateFormat sdf;
	sdf = new SimpleDateFormat("E, MMM. dd, yyyy");
	%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Home Seller proof template 1</title>
</head>
<body>
Use this page to proof reports before you send them. Email or printed reports will appear exactly as they do in the box below.<BR><BR>
<table width="675" border="0" cellspacing="0">
  <tr> 
    <td> 
      <table width="100%" border="0" cellspacing="0">
        <tr> 
          <td width="13%" align="center" valign="middle" rowspan="2"><IMG SRC="http://cdn-317.homes.com/c1/cgi-bin/readimage/173533317" WIDTH="90" HEIGHT="67" BORDER="0"></td>
          <td width="41%" rowspan="2" align=center> 
            <p><font face="Arial,Helvetica,Sans-Serif" size="4"><b><%=userData.getName()%></b><br>
              <font size="2"><%=userData.getStreet()%> <br>
              <%=userData.getCity()%>, <%=userData.getState()%> <%=userData.getZip()%><br>
              <%=Utils.splitPhone(userData.getPhone(),1) + "-" + Utils.splitPhone(userData.getPhone(),2) + "-" + Utils.splitPhone(userData.getPhone(),3)%><br>
              <A HREF="<%=userData.getEmail()%>"></A></font><%=userData.getEmail()%></font><br>
              <a href="http://<%=userData.getAcctName()%>" target="_new"></A></font><%=userData.getAcctName()%></font></p>
          </td>
          <td width="45%" align="center" valign="middle"><IMG SRC="http://cdn-798.homes.com/c1/cgi-bin/getimage/06912798" BORDER="0" HEIGHT="65"></td>
        </tr>
        <tr>
          <td width="45%" align="center" valign="middle"><font face="Arial,Helvetica,Sans-Serif" size="2">            <b>Virtual Office - Southern BrokerDemo</b><br>
            333  main street   <br>
            Your Hometown, FL 33333</font></td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0">
        <tr> 
          <td width="3%" align="left" valign="top">&nbsp;</td>
          <td width="56%" align="left" valign="top"><font face="Arial,Helvetica,Sans-Serif" size="2"><br>
            <br>
            <%=request.getParameter("location")%></font></td>
          <td align="center" valign="middle" width="45%"><font face="Arial,Helvetica,Sans-Serif" size=2><%=sdf.format(date)%>"</font></td>
        </tr>
        <tr> 
          <td width="3%" align="left" valign="middle"> 
            <p>&nbsp;</p>
            </td>
          <td width="56%" align="left" valign="middle"> 
            <p><font face="Arial,Helvetica,Sans-Serif" size="2">Dear 
              ,<%=request.getParameter("homeseller")%><br>
              <br>
              In the month of October 2007 I received the<br>
              following information requests in regards to:</font></p>
            <p><font face="Arial,Helvetica,Sans-Serif" size="4"><%=request.getParameter("location")%></font></p>
          </td>
          <td width="45%" align="center" valign="middle"><IMG SRC="http://cdn-080.homes.com/c1/cgi-bin/readimage/218559080" BORDER="0" WIDTH="240" HEIGHT="180"></td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" height="130">
        <tr>
          <td align="left" valign="middle" width="20%"><font face="Arial,Helvetica,Sans-Serif" size="4">Received<br>
            <br>
            </font></td>
          <td align="left" valign="top" width="80%" colspan=2><font face="Arial,Helvetica,Sans-Serif" size="2"><br>
            <ul> 
             
             
             <li><b>inquiries:</b><%=request.getParameter("inquiries")%></li><br>
            <li><b>advertising calls:</b><%=request.getParameter("ad_calls")%></li><br> 
            <li><b>sign calls:</b><%=request.getParameter("sign_calls")%></li>
            <li><b>other agent calls:</b><%=request.getParameter("other_agent_calls")%></li><br>
            <li><b>Web Visits:</b><%=request.getParameter("web_visits")%></li> 
            <li><b>Web Inquiries:</b><%=request.getParameter("web_inquiries")%></li> 
            <li><b>Was Shown/Previewed:</b><%=request.getParameter("web_inquiries")%></li> 
             
            </ul> 
            </font></td>
        </tr>
      </table><br>
      <table width="100%" border="2" cellspacing="2" cellpadding="6">
        <tr> 
          <td width="50%" align="left" valign="top" height="64"><b><font face="Arial,Helvetica,Sans-Serif" size="2">Comments 
            from Other Buyers/Agents:<br>
            <br>
            </font></b><font face="Arial,Helvetica,Sans-Serif" size="2"><%=request.getParameter("bcomments")%></font><b></td>
          <td width="50%" align="left" valign="top" height="64"><b><font face="Arial,Helvetica,Sans-Serif" size="2">Suggestions:<br>
            <br>
            </font></b><font face="Arial,Helvetica,Sans-Serif" size="2"><%=request.getParameter("suggestions")%></font></td>
        </tr>
        <tr> 
          <td width="50%" align="left" valign="top" height="50%"><b><font face="Arial,Helvetica,Sans-Serif" size="2">Overall 
            Comments:<br>
            <br>
            </font></b><font face="Arial,Helvetica,Sans-Serif" size="2"><%=request.getParameter("overall")%></font></td>
          <td width="50%" valign="top" height="50%"><b><font face="Arial,Helvetica,Sans-Serif" size="2">Activities 
            Planned:<br>
            <br>
            </font></b><font face="Arial,Helvetica,Sans-Serif" size="2"><%=request.getParameter("activities")%></font></td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0">
        <tr>
          <td align="left" valign="middle"><font face="Arial,Helvetica,Sans-Serif" size="2"><br>
            If you have any questions regarding the information presented in this report, or would like to discuss the status of your property in general, please call or send me an email. I look forward to hearing from you and thank you again for your patronage.<br>
            </font></td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0">
        <tr>
          <td align="left" valign="middle"> 
            <font face="Arial,Helvetica,Sans-Serif" size=2><p><br>
              Sincerely,<br>
              <i><%=userData.getName()%><br>
              <A HREF="<%=userData.getEmail()%>"></A></font><%=userData.getEmail()%></A><br>
              </i></p></font>
            </td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0">
        <tr>
          <td align="center" valign="middle"><font face="Arial,Helvetica,Sans-Serif" size="1">All information contained within believed to be accurate, but not guaranteed</font></td>
        </tr>
      </table>
      </td>
  </tr>
</table>
<CENTER><TABLE><TR><TD ALIGN="CENTER">
<INPUT TYPE="SUBMIT" NAME="finish" VALUE="EMAIL"> To: <INPUT TYPE="TEXT" NAME="emailTo" VALUE="">
</TD></TR><TR><TD ALIGN="CENTER">
<INPUT TYPE="SUBMIT" NAME="finish" VALUE="PRINT TO SCREEN">
</TD></TR></TABLE></CENTER>

</TD></TR></TABLE>
</TD></TR></TABLE>
</TD></TR></TABLE>
</TD></TR></TABLE>

</TD></TR></TABLE>
</body>
</html>

Simple functonality provided by HTML
example from w3scools.com

Ok that looks simple..but what about if I have a input box that asks for the email address rather thatn being hardcoded into the action field

like:

<INPUT TYPE="SUBMIT" NAME="finish" VALUE="EMAIL"> To: <INPUT TYPE="TEXT" NAME="emailTo" VALUE="">

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.