Totally New at this so please bear with me.

Is there any way to email the my form and data to make more readable?
Thanks

Time.asp
</form>
<FORM method="POST" action="/cgi-bin/sendmail.asp" style="text-align:
left; line-height: 100%">
<p><input type="value" name="Job" size="21">
<input type="text" name="Thur" size="5">
<input type="text" name="Fri" size="5">
<input type="text" name="Sat" size="5">
<input type="text" name="Sun" size="5">
<input type="text" name="Mon" size="5">
<input type="text" name="Tue" size="5">
<input type="text" name="Wed" size="5">
</p>
<p>&nbsp;</p>
<p><input type="submit" value="Submit" name>
<input type="reset" value="Reset" name="B2"></p>
<p></p>
</form>

Sendmail.asp

<%
For Each x In Request.Form
message=message & x & ": " & Request.Form(x) & CHR(10)
Next

set smtp = Server.CreateObject("Bamboo.SMTP")
smtp.Server = "mail.xxxxx.net"
smtp.Rcpt = "xxxxx@mindspring.com"
smtp.From = "xxxxx@mindspring.com"
smtp.FromName = Request.ServerVariables("HTTP_REFERER")
smtp.Subject = "Your web form - " & Request.ServerVariables("HTTP_REFERER")
smtp.Message = message
on error resume next
smtp.Send
if err then
response.Write err.Description
else
response.Write ("Thank you for your submission.... Your message has
been delivered successfully.")
end if
set smtp = Nothing%>

Re: form help by Curt_C

Curt_C
Mon Jan 05 08:04:51 CST 2004

Don't build your Body in a for/each loop.
Manually declare each form item into your message body.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com


"Dryballs" <dryballs@mindspring.com> wrote in message
news:UZdKb.25941$IM3.1487@newsread3.news.atl.earthlink.net...
> Totally New at this so please bear with me.
>
> Is there any way to email the my form and data to make more readable?
> Thanks
>
> Time.asp
> </form>
> <FORM method="POST" action="/cgi-bin/sendmail.asp" style="text-align:
> left; line-height: 100%">
> <p><input type="value" name="Job" size="21">
> <input type="text" name="Thur" size="5">
> <input type="text" name="Fri" size="5">
> <input type="text" name="Sat" size="5">
> <input type="text" name="Sun" size="5">
> <input type="text" name="Mon" size="5">
> <input type="text" name="Tue" size="5">
> <input type="text" name="Wed" size="5">
> </p>
> <p>&nbsp;</p>
> <p><input type="submit" value="Submit" name>
> <input type="reset" value="Reset" name="B2"></p>
> <p></p>
> </form>
>
> Sendmail.asp
>
> <%
> For Each x In Request.Form
> message=message & x & ": " & Request.Form(x) & CHR(10)
> Next
>
> set smtp = Server.CreateObject("Bamboo.SMTP")
> smtp.Server = "mail.xxxxx.net"
> smtp.Rcpt = "xxxxx@mindspring.com"
> smtp.From = "xxxxx@mindspring.com"
> smtp.FromName = Request.ServerVariables("HTTP_REFERER")
> smtp.Subject = "Your web form - " &
Request.ServerVariables("HTTP_REFERER")
> smtp.Message = message
> on error resume next
> smtp.Send
> if err then
> response.Write err.Description
> else
> response.Write ("Thank you for your submission.... Your message has
> been delivered successfully.")
> end if
> set smtp = Nothing%>
>



Re: form help by Dryballs

Dryballs
Mon Jan 05 08:21:56 CST 2004



Curt_C [MVP] wrote:

> Don't build your Body in a for/each loop.
> Manually declare each form item into your message body.
>



I've been (trying to) writing htm-asp for almost two days now!! LOL
Mostly by copy and paste so please bear with me.
Do I have to insert (declare) form for every item?
My post was a <snipit> my form has 7 paragraphs.
Can you give me an example?

Thanks again