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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatic email user HTML Form

Status
Not open for further replies.

menace212

Programmer
Jul 11, 2003
144
US
I have a html scripting question...I do I write a html form to send an automatic email to people when they fill out question boxes...

I have drop boxes for the person to fill out, but I can't import the data in an email and then send it out....It just keeps bringing up the email without the data,the users email address and then it won't send it out autmatically....I need help on this one....

example below:

<td valign="top" width="123" height="142">
<form name="feedback" method="post" action="mailto:support@other.com" id="form" style="margin:0; padding:0 ">
<div style="margin-left:0px; margin-top:0px;"><input type="text" class="w" style=" width:113px; height:16px; border-style:solid; border-width:1px; border-color:#7EC4EB; background-color:#308DCD " ></div>
<div style="margin-left:0px; margin-top:3px;"><input type="text" class="w" style=" width:113px; height:16px; border-style:solid; border-width:1px; border-color:#7EC4EB; background-color:#308DCD " ></div>
<div style="margin-left:0px; margin-top:3px;"><textarea cols="35" rows="35"style=" width:113px; height:66px; border-style:solid; border-width:1px; border-color:#7EC4EB; background-color:#3795D1; overflow:hidden " class="w"></textarea></div>
<select name="jobDescriptionId"><option value="-1">Select One</option>
<option value="164">Academia/Faculty &amp; Staff</option>
<option value="165">Academia/Research</option>

<option value="166">Academia/Student</option>
<option value="64">Consultant</option>
<option value="61">Corporate Management</option>
<option value="60">Financial/Operations Management</option>
<option value="55">IT Management</option>
<option value="66">Management</option>
<option value="59">Marketing/Sales/Product Management</option>
<option value="0">Other</option>
<option value="53">QA Engineer</option>
</select>
<a href="#" class="w3" onclick="document.getElementById('form').reset()"> <strong>reset</strong></a><img alt="" style="margin-right:5px; margin-left:29px;" src="images/1_z1.gif" border="0"><a href="" class="w3" onclick="document.getElementById('form').submit()"><strong>submit</strong></a></div>

</form>
 
If you need to send it automatically, without involvement from the users mail application, then you need a server side script. I prefer PHP, but it can be done using ASP, perl, CGI etc.

Basically, the form data should be sent to a server side script, that formats an email as you like and then send it to whom ever you like.

Regards
 
Unfortunely it's user involvement...On a web page, where the user enters there name and email information and then sends it to the specific email address(automatically) with a submit button...

Can some one help with the code on this...
 
What I was aiming at was to have the server sending the mail instead of the users email app. It's both faster and (in my opinion) much easier for the user ... one submit-button click and away goes the mail to suppert.
 
I have a html scripting question

HTML isn't a scripting language, it's a Markup Language. Scripting would need to be done with Javascript (on the client side) or with, for example, PHP, Perl, ASP, Coldfusion on the server side.

For your specific problem you would need to use,a s dkdude ahs said, a server side language to check the submitted form and email it's content.
The language you choose is dependent on what is available within your hosting environment.

<honk>*:O)</honk>
Foamcow Heavy Industries - Web site design in Cheltenham and Gloucester
Earl & Thompson Marketing - Marketing Agency Services in Gloucesterhire
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top