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

Best Way to make Contact Form

Status
Not open for further replies.

lahddah

Programmer
Jan 2, 2003
109
US
Hi - what, in anyone's opinion is the best way to go about making a contact form that will send an e-mail both to the webmaster and the user, and will include a 'thank you' page when the user submits it? I am hosted somewhere that does not support PHP, CGI, or ASP. I was looking through the javascript section here, but couldn't find anything that fits the bill.

Thanks!

~ lahddah
 
You can't do email client side beyond using "mailto". You must have server side processing to perform the SMTP directly.

-pete
 
Does your webpage support Coldfusion ? If so, cfm scripting is probably the easiest serverside script available.

here is an example of what your .cfm page would look like.


<cfmail from=&quot;you@yourpage.com&quot; to=&quot;#form.confirm#&quot; subject=&quot;you pick.&quot; server=&quot;99.99.999.23&quot;>


Congratulations. Your online form was submitted successfully !

</cfmail>

<cfmail from=&quot;you@yourpage.com&quot; to=&quot;whow@whoever.com&quot; subject=&quot;#form.hiddenField#&quot; server=&quot;99.99.999.23&quot; >
Request Type: #form.hiddenField#
Requested by: #form.requestedBy#
Customer Name: #form.customerName#
Customer Number: #form.customerNumber#
Address: #form.address1#
Branch: #form.branch#
State: #form.State#
City: #form.city#
Zip Code: #form.zipCode#

</cfmail>

<cflocation url=&quot;
post back if you have any questions.

-DSergile
 
Thanks, dsergile - I am not familiar with CFM. I tried to understand what you had posted and put it to use...but I just got lost. Sorry!

I went ahead and had my client upgrade her hosting to include CGI - but the script that they supplied is very bare bones. I'd like to have a custom email response to the user as well as a thank you page and an email to the webmaster.

Any suggestions on where to get the simplest, but good customizable CGI contact forms for free? Not asking a lot, am I?

I would like to not have to use an remotely hosted service, if possible.


~ lahddah
 
Follow the link in my previous posting. At the top of that page are links to other categories - loads of non-remotely hosted scripts that do what you need.

There are, no doubt, other similar sites out there, but the CGI resource index tends to be my first port of call when looking for scripts.

-- Chris Hunt
 
Thanks, Chris - I did find some useful stuff there! I was, apparently, thinking 'inside the box' instead of outside.

Thanks, again for all of your suggestions!



~ lahddah
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top