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!

Online form to email inquiry

Status
Not open for further replies.

VanCity

IS-IT--Management
Apr 30, 2007
18
I have an basic online form (names, address, contact, tel, etc) that I need to be able to email to myself when the submit button is selected - I suspect there are dozens of threads to give me the info I require, any help is appreciated
 
You need server-side programming languages to make this a safe, secure and seamless effort.

Coldfusion, ASP.NET, PHP are just some languages you can choose from.

____________________________________
Just Imagine.
 
Thanks for the reply.
Could you elaborate for me, do I need to work with my web host in order to do this or I simply need to develop the form page in one of the options mentioned in Dreamweaver 8?
 
You need to find out what server-side language your Webhost supports, and then Develop in that language on your own.

I'm not sure Dreamweaver has behaviors for email forms, but you can always ask in the relevant forum, for a little help.

forum434
forum333
forum232

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
I wouldn't use an pre-built or 3rd party Dreamweaer behaviors. It's much better and less hassle to develop this on your own.

First, find out what programming language the hosting company provides.

Second, create a flow chart to the user logic (user experience). (like, what to do when an error occurs, user types in wrong information, etc)

Then on the "action" page process the form submission and send the e-mail.

This is BASIC example of how to do this in Coldfusion:
Code:
<cfif isdefined("FORM.SubmitButton") and FORM.Name NEQ "" and FORM.Email NEQ "" and FORM.Address NEQ "">

<cftry>
  <cfmail to="" from="" subject="" type="html">
  ...
  ...
  ...
  </cfmail>

  <cfcatch>
    Ooops, there was an error when sending the e-mail.  
    Please try again.
    <cfabort>
  </cfcatch>
</cftry>

<cfelse>
  <cflocation url="error.cfm">
</cfif>

____________________________________
Just Imagine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top