Register on the forum now to remove ALL ads + popups + get access to tons of hidden content for members only!
Site Owners Forums - Webmaster ForumsCalendarContact Us

Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General > HTML / DHTML


Reply
 
Thread Tools Rate Thread Display Modes
Old 07-09-2004, 06:47 AM   #1
Steve d
Registered User
 
Join Date: Jul 2004
Posts: 2
Form: select an email address to send message to

Hi Again

I might be thinking too far out of the box but...

I'm putting together a website for a small faculty. On the contact us form, I would like to have a pulldown list from which the user can select a member of the faculty who will recieve the completed form.

So the value of the selected member needs to tie up with an email address option.

ANY IDEAS???

Cheers

Steve
Steve d is offline   Reply With Quote

Old 07-09-2004, 07:01 AM   #2
muneepenee
Registered User
 
Join Date: Mar 2004
Location: Nu Braunfelds, Tex
Posts: 608
go from member name tu emael

Yu kan yuz javaskript arrays...won tu hold member name, other tu hold his emael kee. lookup name in array 1, get emael from same spot in array 2.
sum kode tu get yu started
DROP-DOWN LIST
select data about name yu want
<! ************** java script ****************>
<script language="JavaScript">
<!--
function getmember(){
number1=document.form1.memstuff.selectedIndex;
string1=document.form1.memstuff.options[number1].value;
document.write("\n kontents=",string1);
}
// -->
</script>
<!********************** html... form>
<! ************* css >
<style> .klas1{position:relative;left:55;top:-65px;width:700px}
</style>
<div class="klas1">
<form name="form1" method="POST">
select name yu want <select name="memstuff"
onChange="getmember(this)">
<option selected>select 1 name
<option value="emael address1">jak </option>
<option value="emael address2">jill </option>
<option value="emael address3">jorj </option>
<option value="emael address4">jaksun </option>
<option value="emael address5">Jeffersun</option>
</select>
</form>
</div>
<! ************** bottom av form *************>
</BODY>
</HTML>


Last edited by muneepenee; 07-09-2004 at 08:50 AM..
muneepenee is offline   Reply With Quote
Old 07-12-2004, 06:28 PM   #3
Dnyarri
Registered User
 
Join Date: Apr 2004
Posts: 21
Send a message via Yahoo to Dnyarri
Ditch JS

Ditch Javascript.

Use server-side scripting instead... protects the email addresses of your departments. Check out YACF at:
http://www.ibasics.biz/yacf.zip

It lets you associate a seperate email address with each subject
chosen, and it's server side (PHP) so automates and protects against
spam attacks.
__________________
The proper response to 'Good Morning' is not 'Prove it'.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

*
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Dnyarri is offline   Reply With Quote
Old 07-19-2004, 02:05 PM   #4
Sharon White
Registered User
 
Join Date: Jul 2004
Location: London
Posts: 3
If you find server side scripting is too painful to do, you can use simple encription or just a add a string to the EMail address and remove it when used (ie. adding 'spam_' so it becomes 'spam_name@website.com').

_____________________________________________________
Sharon White
Sharon White is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Do you like money? Read this. guntdanc Making money on the web 0 08-06-2006 11:08 AM
Turn $5 Into $15,000 In Only 30 Days...heres How! Snoop_Rob Making money on the web 0 07-27-2006 12:18 PM
5 bucks mattasand Making money on the web 0 05-16-2006 10:54 AM


All times are GMT -7. The time now is 06:11 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Kindly hosted by OH Telecom servers (get one!)
Site Delivered By Liberty Of Mind - #1 Adult & Mainstream Solutions Provider

Virtual Dedicated Server     Advertise