| | |
need help how to add multiple email addresses on a radio button
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Oct 2006
Posts: 19
Reputation:
Solved Threads: 0
Hi,
I need some help how to include multiple email addresses in a radio button. This radio button will hold at least 2 email addresses within an organization. After user clicks the Submit button in a form. The email addresses will go directly on the To: of the Inbox.
I am not sure how to go about this problem? It has been a few months I have learn how to program in ASP.
For example:
Choose what type of suggestions:
<input type="radio" name="web enhancement" value="jennyg@company.com">Web Enhancements/ Comments</input>
-- After clicking the submit, the email address will show up on the To: field --
I am trying to figure out this problem for 2 days, but somehow I have tried
strTo: didn't work
strTo As String = txtEmail.text
I appreciate any help.
I need some help how to include multiple email addresses in a radio button. This radio button will hold at least 2 email addresses within an organization. After user clicks the Submit button in a form. The email addresses will go directly on the To: of the Inbox.
I am not sure how to go about this problem? It has been a few months I have learn how to program in ASP.
For example:
Choose what type of suggestions:
<input type="radio" name="web enhancement" value="jennyg@company.com">Web Enhancements/ Comments</input>
-- After clicking the submit, the email address will show up on the To: field --
I am trying to figure out this problem for 2 days, but somehow I have tried
strTo: didn't work
strTo As String = txtEmail.text
I appreciate any help.
•
•
Join Date: Sep 2007
Posts: 1,080
Reputation:
Solved Threads: 68
strTo As String = txtEmail.text is not asp, that is ASP.NET. If you are using ASP Classic (Regular ASP), then to add multiple email addresses just do it like a normal mailto thing:
<label><input type="radio" name="web enhancement" value="jennyg@company.com;email@two.com;email@three.com">Web Enhancements/Comments</label>
</input> is not a tag, what you are looking for is label.
Now the above code is for website use only. If you are talking abouta link to click that opens an email program, then you need the mailto: command done by a link or backend asp coding.
<a href="mailto:jennyg@company.com, jenn2@company.com"></a>
This is not a safe method as no guarantees how browsers will read the code. Your best bet is to do a backend asp page reading the radio button, then email within that page. If you have more questions, feel free to respond.
<label><input type="radio" name="web enhancement" value="jennyg@company.com;email@two.com;email@three.com">Web Enhancements/Comments</label>
</input> is not a tag, what you are looking for is label.
Now the above code is for website use only. If you are talking abouta link to click that opens an email program, then you need the mailto: command done by a link or backend asp coding.
<a href="mailto:jennyg@company.com, jenn2@company.com"></a>
This is not a safe method as no guarantees how browsers will read the code. Your best bet is to do a backend asp page reading the radio button, then email within that page. If you have more questions, feel free to respond.
•
•
Join Date: Oct 2006
Posts: 19
Reputation:
Solved Threads: 0
I don't want a link that has a mailto:jenny@company.com.
I want a radio button which holds 2 email addresses as values. I think the backend asp page has to read the radio button-- which is good advice.
I cannot distinguish between asp or asp.net languages.
So the above code may work-- let me check on it first. But I may acquire some backend asp coding to see if this radio button is selected, and after the submit button is pressed. Thus, it goes to 2 email addresses.
So does this go to only aspx webpages and not outputting the results via email.
I want a radio button which holds 2 email addresses as values. I think the backend asp page has to read the radio button-- which is good advice.
I cannot distinguish between asp or asp.net languages.
So the above code may work-- let me check on it first. But I may acquire some backend asp coding to see if this radio button is selected, and after the submit button is pressed. Thus, it goes to 2 email addresses.
So does this go to only aspx webpages and not outputting the results via email.
•
•
Join Date: Sep 2007
Posts: 1,080
Reputation:
Solved Threads: 68
Yes, but you will have to split the string and send it to each email address separatly. An example would be something like this:
ASP Syntax (Toggle Plain Text)
Dim s As String = Request.Form("radioemail") 'radioemail is an ID that you will have to set for your entire radio list. 'You will need an id for your radiolist to prevent multiple choices. Dim a As String = Split(s, ";") For each a in s 'your email code here with the follow code: Dim strTo As String = a 'now do the rest of your code Next
![]() |
Similar Threads
- Function to Create Radio Button (JavaScript / DHTML / AJAX)
- storing multiple email address problem (PHP)
- Want to use radio button or menu bar instead of combo box (Java)
- Am not able to get a radio button selection to display in output (PHP)
- Security Settings -> Java permission -> Custom (radio button) -> Java Custom Settings (Web Browsers)
- Problem passing value from radio button to second page. (PHP)
Other Threads in the ASP Forum
- Previous Thread: a way to include multiple email addresses as text in asp
- Next Thread: need help with dynamic form in asp
| Thread Tools | Search this Thread |
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection connection database databaseconnection dreamweaver excel fso iis msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption single specfic sqlserver sqlserverconnection windows7






