473,396 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

javascript - Two different values set in one select/option choice

23
Please help
I saw the posted forum, the one i exactly want, could you just help me,
here is the code...
<td width="24%"><div align="right">Select Area:</div></td>
<td width="19%">
<select name="recipient" class="loginSelect">
<option value=""></option>
<option value="gotocentral@mydomain.com">Central </option>
<option value="gotowest@mydomain.com">West</option>
<option value="gotoeast@mydomain.com">East</option>
</select>
</td>
--------------------------------
My question is, if i select West, it should send the mail to both west as well as central. Just like if i choose east, it should send mail to both east and central. So how can i set both values in single option value.
Something like ....... not exactly
<option value="gotowest@mydomain.com";"gotocentral@mydomai n.com">West</option>
Thanks
Nov 8 '06 #1
4 2468
depending on the mail system you use, you can just put a comma in between the two address or just put the central under a CC:
Nov 8 '06 #2
glady
23
depending on the mail system you use, you can just put a comma in between the two address or just put the central under a CC:
I am using FormMail.pl file in php-nuke .If i choose, west and submit button it should mail to two different mail address.
I will try with comma or put CC. and see if it works or not.
Thanks.
Nov 8 '06 #3
Two things,
1. This is an old demonstration code, you're going to have to redo it a little for yourself.
2. You're in the PHP forum, this is more JS stuff
Expand|Select|Wrap|Line Numbers
  1. <script>
  2. function visi(nr)
  3. {
  4.     if (document.layers)
  5.     {
  6.         vista = (document.layers[nr].visibility == 'hide') ? 'show' : 'hide'
  7.         document.layers[nr].visibility = vista;
  8.     }
  9.     else if (document.all)
  10.     {
  11.         vista = (document.all[nr].style.visibility == 'hidden') ? 'visible'    : 'hidden';
  12.         document.all[nr].style.visibility = vista;
  13.     }
  14.     else if (document.getElementById)
  15.     {
  16.         vista = (document.getElementById(nr).style.visibility == 'hidden') ? 'visible' : 'hidden';
  17.         document.getElementById(nr).style.visibility = vista;
  18.  
  19.     }
  20. }
  21. </script>
  22. <form>
  23. <select id="PlaceNameHere">
  24.   <option>Milk</option>
  25.   <option>Coffee</option>
  26.   <option>Tea</option>
  27. </select></form>
  28. <A href="#" onClick="visi('PlaceNameHere');">Toggle visible/invisible</A>
  29.  
Nov 8 '06 #4
Also there is going to be a gap there if it's invisible, but dropdowns aren't that big.
Nov 8 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

53
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is...
19
by: Neal | last post by:
I can have a visitor choose a subject line for an email. <div><label for="subject">Subject:</label><br /> <select class="form" id="subject" name="subject"> <option value="one">One</option>...
19
by: dmiller23462 | last post by:
Hi guys....I have absolutely NO IDEA what I'm doing with Javascript but my end result is I need two text boxes to stay hidden until a particular option is selected....I've cobbled together the...
6
by: Penny | last post by:
Hi all, I've built a simple search <Form> on a web page that is intended to allow the user to search a record store database. There is a drop down box where the user can choose either 'Artist'...
9
by: beguigne | last post by:
Below is a snippet of a crude date picking routine for a form. I am a novice at this so, I am hitting my head at why when I select the day, the onChange event gives me a blank. What am I missing?...
24
by: firstcustomer | last post by:
Hi, Firstly, I know NOTHING about Javascript I'm afraid, so I'm hoping that someone will be able to point me to a ready-made solution to my problem! A friend of mine (honest!) is wanting to...
4
by: fish | last post by:
Consider this page: http://college.hmco.com/esl/vestri_solomon/top20/1e/students/exercises/unit16/exe03.html A user is asked to select a relative pronoun from a drop down list, and, if all the...
1
by: assgar | last post by:
Hi I need help solving a porblem. I have a form that displays a checkbox, service code, description and dropdown with fees on each row. The fee_money and unit array only returns a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.