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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RE: (Prior Question) Email script help ... please. 1

Status
Not open for further replies.

garymgordon

Programmer
Apr 5, 2000
307
US
Hi.

I posted this the other day and figured rather than continue on with the original information, I would re-post it.

First ... I have 3 files.
One - Initial Email Form (asp page)
Two - The Email Action script that checks the information being passed to it, etc.
Three - The page displayed back to the user after they submitted their information.

I would like to email these three pages to anyone who would be willing to help me. I just think it would be easier than trying to post the three pages here. (Actually only two would be necessary.)

Plus, the current (Initial Email Form) ... is not the actual FORM that I will be using.

What I need is this.

The REAL Email Form that I will be using includes a series of checkboxes.

If the user doesn't click any of them, I need it to state in the email reply that is sent (via email) ... that the user didn't select any of the items.

But, if the user does click one or more of the checkboxes, it should display a list of each and every one they checked. But only the ones they checked.

PLUS (in addition to the checkboxes) ... all the other information that was provided, such as first name, last name, email address, comment field 1 and comment field 2.

The current HTML Form can be seen at:


If you are willing to help me RE-DO the pages so that ASP PAGES I have now ... will simply incorporate the necessary functionality so it will send the information I am wanting back to whomever is set to receive the output from the email form.

I hope someone can help.

Thanks,
Gary
:)

If you have any questions, please just let me know.

Gary M. Gordon, LLC
webmaster@garymgordon.com
Certified Web Developer ::
Application Programmer
 
Gary,

Send me the files, and I'll have a look at them over the weekend.

Also add what you are trying to do.

Lewis

ljnorth@hotmail.com
 
Gary,
Your probably know that the method of your input form is going to be "post".

On you mail blast program 1st you must capture the values of the check boxes and create a sessions.

session("personalInjures") = request.form(trim("personalInjuryChkBox"))
session("realEstate") = request.form(trim("realEstateChkBox"))
session("willsAndTrust")=request.form(trim("willsAndTrustChkBox"))

if you are not creating sessions then do this

personalInjuries = request.form(trim("personalInjuriesCKBOX"))

then do some data verification.
if session("realEstate") = "" and session("personalInjuries") = "" and rest of your check boxes = "" then
strBody = strBody & "No boxes were checked!" & vbcrlf
end if

if session(&quot;realEstate&quot;) <> &quot;&quot; then
strBody = strBody & session(&quot;realestate&quot;)&vbcrlf
end if
if session(&quot;willandtrust&quot;) <> &quot;&quot; Then
strBody = strBody & session(&quot;willandTRust&quot;)
end if
ect...with other check box varriable.

set mailObj=blah blah blah

mailObj.body = strBody

if you have experience coding in asp this should be simple. Otherwise you might find it difficult to understand. If so you can e-mail me and I'll explain or look at your code!
Cooter Brown
 
Cooter,

What's your email address?

--------------------------

and .. Thanks Gums.

:)

And ... George ... thanks again and again!

Gary
Gary M. Gordon, LLC
webmaster@garymgordon.com
Certified Web Developer ::
Application Programmer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top