Requirement: Display dynamic HTML form to browser then allow user to send
output to e-mail.
Problem: Output gets sent with HTML tags. Can't format to ASCII text
or RTF.
When I try to send the output with the GET method, I get HTML tags and text.
If I send it with the POST method, I get absolutely nothing. I specified
ENCTYPE="text/plain" and "text/html" and it makes no difference either. I
have provided a test example for anyone to comment on.
Thanks,
Gary
<% Response.Buffer = true; %>
<HTML>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<HEAD>
</HEAD>
<BODY>
<%
name_array = new Array("Apples","Oranges","Pears","Bananas","Peaches");
Session("Names") = name_array;
str = (
'Response.Write("<table>");'+
'for (i=0;i<5;i++) '+
'{' +
'Response.Write("<tr><td>" + Session("Names")[i] + "</td></tr>");'+
'}'+
'Response.Write("</table>");'
);
eval(str);
%>
<form id=mailform method="get" ENCTYPE="text/html"
<INPUT NAME=subject TYPE=hidden VALUE="Itineray for " +
<<%=Session("first_name")%> +' ' + <%=Session("last_name")%> >
<TEXTAREA NAME=body COLS=0>
<%=eval(str)%></TEXTAREA>
<input type=submit name=mailbut value="Send Mail" >
</form>
</BODY>
</HTML>