Need Help and ideas... Checkbox form validation and Making an e-mail body with results.

D

Drifter

I am working with a form that has to do 2 things:

1) Validate that 9 checkboxes are checked (from a dynamically generated list
of topics).
2) Take the 9 Topics, and put them into an e-mail "body". I am guessing that
this can be a Text file (string) which can be called Body - as it has to be
sent via ASPEMAIL where "Body" is the Object which Specifies a message body.

Anyone familiar with these issues, especially with the combination of the
2 - i.e. validation for 9 checked, and then adding the checked to a Variable
String?

Thanks,

D
 
B

Bhaskardeep Khaund

Hi,

You can do so using couple of 'if...else if' statements or using a 'switch case'. Just set a variable and depending upon the checks, concatenate the string into the variable, and at the end send the content of that variable as the Body of the email.

Regards,
Bhaskardeep Khaund
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top