473,395 Members | 2,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

form help

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 = "xx***@mindspring.com"
smtp.From = "xx***@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%>

Jul 19 '05 #1
2 1445
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" <dr******@mindspring.com> wrote in message
news:UZ******************@newsread3.news.atl.earth link.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 = "xx***@mindspring.com"
smtp.From = "xx***@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%>

Jul 19 '05 #2


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
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Randell D. | last post by:
HELP! I am determined to stick with this... I'm getting there... for those who haven't read my earlier posts, I'm createing what should be a simple function that I can call to check that...
4
by: Tonya | last post by:
Hi, Does anyone have any example of how i can manage forms in my application?? I want to be able to reference my form instances that are currently open from other forms. why cant i open...
10
by: Gregory A Greenman | last post by:
I'm trying to write a program in vb.net to automate filling out a series of forms on a website. There are three forms I need to fill out in sequence. The first one is urlencoded. My program is...
0
by: Pat Patterson | last post by:
I'm having serious issues with a page I'm developing. I just need some simple help, and was hoping someone might be able to help me out in here. I have a form, that consists of 3 pages of...
25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
4
by: Dave Guenthner | last post by:
I have a csharp form1.cs created with VS. I have added a menu bar with one option called help. I then created another form in VS called help.cs. How can I launch the help form from the main form...
10
by: Kathy Burke | last post by:
HI. in asp.net app, I have an xmlDocument that I transform to the client html. Using xsl I create a few textboxes to capture user input. Each of these are related to <data> elements in the xmlDoc....
13
by: Lee Newson | last post by:
Hi, I have just written my first application using VB.NET. The app works fine when i am running it within .NET for debugging purposes, however when i try to run the app from the .exe file that...
9
by: mohit.akl | last post by:
Hey guys & gals I am havng trouble modifying the control box. I want to make the maximise button invisible and have minimisise button instead of it. Like this _ X (not like _ o X ) How...
9
by: MikeB | last post by:
Hi, I'd appreciate some help, please. I'm writing a VS2005 VB project for school and one of the requirements is that every screen should have a "Help" button. I could do it by writing a clumsy...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.