Congratulations to AcaCandy on her 100,000th post!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen blue screen boot bsod computer connection crash css dell driver drivers email error ethernet excel firefox firefox 3 game hard drive internet internet explorer itunes laptop linux malware monitor network networking nvidia outlook outlook 2003 outlook 2007 outlook express partition problem router slow software sound trojan usb video virus vista wifi windows windows vista windows xp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Contact Form Question


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
webdiva's Avatar
Member with 52 posts.
 
Join Date: Dec 2004
13-Aug-2005, 02:30 PM #1
Contact Form Question
Hi,

I want to add a contact form to a website. I'm looking for a premade script, preferably in PHP or JavaScript that will allow the user to see a pull down menu with the contact person they want to contact. For example:

There's a website about Pets. There is a universal Contact form on each section of the website. When the user clicks the Contact Us button, it goes to the form, now there is an option:
Who do you want to contact?
and next to that is a pull down menu with:
dogs@pets.com
cats@pets.com
general@pets.com

etc....
Then once the user selects the one, they fill out the rest of the form, and it gets sent to that specific contact.

If anyone knows of any premade scripts that does this, I'd be very greatful, thanks!


Laura
DrewGBowman's Avatar
Computer Specs
Senior Member with 151 posts.
 
Join Date: Jun 2004
Location: Immaculata, PA
Experience: Intermediate
16-Aug-2005, 12:26 AM #2
This should work for you. It is setup to open the users email account to send the message.

HTML Code:
<script language="javascript" type="text/javascript">
function initMailto(){
location.href="mailto:" +document.getElementById('whoMailto').value+ "?subject=Form Submission"
email_form.submit();
}
</script> <form name="email_form" method="post" enctype="text/plain">
Send to: <select id="whoMailto"> <option selected>Select one...</option> <option value="dogs@pets.com">Dogs</option> <option value="cats@pets.com">Cats</option> <option value="general@pets.com">General</option> </select> <input type="button" value="Open Email" onclick="initMailto();"> </form>
Related files:
http://drewsdesigns.8k.com/JS.verify.htm
http://drewsdesigns.8k.com/Tutorial.email.htm

Tested on:
Mozilla Firefox 1.0.6 / Microsoft XP SP2 / locally / 12:28am EST
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 12:51 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.