Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forms-Getting a Subject

Status
Not open for further replies.

JoeM6

Programmer
Aug 5, 2000
53
US
I have a website, with like 5 different contact forms. I want to be able to combine them into one. To do this I want to have a thing where you select the subject, and then the subject will show up when i recieve the e-mail. Now, when i recive the e-mail it says 'CGIEMAIL SUBMISSION' Is there a way to get it so the subject that the person chooses shows up in the subject when i recieve it? [sig]<p>JoeM6<br><a href=mailto:JPMJR11@aol.com>JPMJR11@aol.com</a><br><a href= Javascript Games</a><br> [/sig]
 
in your action, you have something like this:

ACTION=&quot;mailto:JoeM6@home.com&quot;

just change it to this:

ACTION=&quot;mailto:JoeM6@home.com?subject=from_page_one&quot;

make sense?

theEclipse
eclipse_web@hotmail.com
robacarp.webjump.com
**-Trying to build a documentation of a Javascript DOM, crossbrowser, of course. E-mail me if you know of any little known events and/or methods, etc.
 
Can i pick a field and put it into the subject line. So that if i am putting in a application form the name that the person fills up in the text field appears on the subject line.
 
<body>
<form name=&quot;jive&quot; action=&quot;mailto:JoeM6@home.com?subject=from_page_one&quot;>
<select onChange=&quot;this.form.action='mailto:JoeM6@home.com?subject='+this.value&quot;>
<option value=&quot;Problems&quot;>Problems
<option value=&quot;Suggestions&quot;>Suggestions
<option value=&quot;Jive&quot;>Jive
<option value=&quot;Donations&quot; selected>Donations
</select>
<input type=&quot;submit&quot;>
</form>
<script>
document.jive.action=&quot;Donations&quot;
</script>
</body> jared@aauser.com
 
I belive that your mail will begiong to a pl or cgi or a asp file to send it by mail

in the cgi there there will be a line where in the sendmail options there is a subject

in there u can then set it to be a varible where then it will access it as the form is
submited

the value of the subject variable can be changes as per the the option chosen by the
client using javascript or just directly in the cgi script

regards : Unicorn11
abhishek@tripmedia.com

[red]Life is a stream who's source is hidden[red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top