Help with asp code for checkboxes

This is a discussion on "Help with asp code for checkboxes" within the Classic ASP section. This forum, and the thread "Help with asp code for checkboxes are both part of the Program Your Website category.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old May 16th, 2007, 09:32
New Member
Join Date: May 2007
Location: Nottingham UK
Age: 28
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Help with asp code for checkboxes

Can anyone help me with a small bit of asp code?

I can create an asp file to create an email for text fields no problem code is detailed below:
Code: Select all
<%
Dim objMail 
set objMail = Server.CreateObject("CDO.Message")
objMail.From = "website@metreel.co.uk"
objMail.Subject = "LUGALL Brochure Request"
objMail.To = "mark.speakman@metreel.co.uk"
objMail.Cc = "sam.spray@metreel.co.uk"
objMail.TextBody ="Customer is requesting a brochure for the Lug-All" & vbCrLf &"Company Name: - " & Request("companyname") & vbCrLf &"Contact Name:- " & Request("contactname") & vbCrLf &"Contact Email:- " & Request("contactemail") & vbCrLf &"Address:- " & Request("address") & vbCrLf &"Postcode:- " & Request("postcode") & vbCrLf &"Telephone Number:- " & Request("telephonenumber") & vbCrLf &"Business Activity:- " & Request("businessactivity")
objMail.Send
set objMail = nothing
%>
<%
Response.Redirect "http://www.metreel.co.uk/lugall/thankyou.htm"
%>
However I would like to create a questionaire for company feedback where a customer can tick one of four options to view the questionaire go to http://www.metreel.co.uk/companyfeedback.htm

How do I code the asp file to pick up the selected tickbox and create a text line in an email?

Hope this is clear??

All I need is example for on question and I'll be away!! Please help

Last edited by Lchad; May 22nd, 2007 at 11:24. Reason: added code tags
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old May 22nd, 2007, 11:17
Junior Member
Join Date: Apr 2007
Location: India
Age: 23
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help with asp code for checkboxes

Hi,

Try the coding as below

<input name="chk1" type="checkbox" value="Checkbox1">Checkbox1
<input name-"chk2" type="checkbox" value="Checkbox2">Checkbox2

write the below coding in your email section
<%
objtxt.Textbody = "Check value = " & Request(chk1) %>

Hope this will help to you

Regards,
Sheela
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
asp, checkboxes, code, forms

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Saving values from checkboxes into MySql karinne PHP Forum 7 Jan 26th, 2008 16:58
FormMail and checkBoxes AGAIN aarrrrgh Morgado Flash & Multimedia Forum 1 Aug 23rd, 2007 11:56
Unchecking specified checkboxes in a table Geovanni Cesar JavaScript Forum 0 Mar 6th, 2007 08:22
How to get value of selected dynamic checkboxes? frmsasp ASP.NET Forum 1 Nov 3rd, 2005 12:59
repopulate checkboxes from database codefantom Classic ASP 1 Aug 29th, 2005 22:28


All times are GMT. The time now is 14:37.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42