AllExperts > Experts 
Search      

Active Server Pages Programming (ASP)

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More Active Server Pages Programming (ASP) Answers
Question Library

Ask a question about Active Server Pages Programming (ASP)
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Srini Nagarajan
Expertise
I can answer any kind of questions in ASP.NET, C#, VB.NET, SharePoint 2007, ASP, Coldfusion, Powerbuilder 7.00 / 8.00, JAVA servlets, MS SQL 2000 / MSSQL7, Sybase

Experience
Contact me if you need any custom development on ASP.NET, ASP, SharePoint 2007, Coldfusion, Powerbuilder.
 
   

You are here:  Experts > Computing/Technology > Business Software > Active Server Pages Programming (ASP) > ASP CDOSYS FORM

Topic: Active Server Pages Programming (ASP)



Expert: Srini Nagarajan
Date: 3/6/2008
Subject: ASP CDOSYS FORM

Question
My question is quite complicated & I don't know if I will explain it correctly - so I apologize up front.

I have a very long form that I am using check boxes on. The form sends an email fine using CDOSYS, but I don't what ALL the check boxes to be submitted. I want only those that are checked to send a value of ordered, the ones that are not checked send no value but show up in my email.

I don't know how to configure this to send only those that are checked. Also, I need some to be checked and then have a quantity entered into a text box to be sent together. I am VERY new to this all - I JUST learned HTML and should be having some kind of assistance!

Answer
hi

Sorry for the delay in reply.

You can validate whether check box is checked before adding to email body.

What you can do is create a local variable and add all the body content onto it.  then send that as email body.

example
BodyText=  ""

BodyText = BodyText & "Name: " & request.form("name") & "<BR>"
BodyText = BodyText & "Add: " & request.form("add") & <br>"
etc.....

If Request.Form("CheckBox1") = "on" Then
  BodyText = BodyText & "checked.. some content" & "<BR>"
Else
  BodyText = BodyText & "not checked.. some content" & "<BR>"
End If


bodytext will be the body content.

_Srini

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.