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

Storing email addresses from my website

Status
Not open for further replies.

rossmcl

Programmer
Apr 18, 2000
128
Hi,

This is probably very easy (but I am a web design amateur).


I use Dreamweaver to create my website. Now what I am trying to do is add functionality so a visitor can enter their email address, so I can store it, and send an email out to them when I make substantial change to the website.

So essentially what I want to do is have a simple form on my website so a user can enter their email address. When they submit the form contents, it should store the email address in a text file. (my hosting is PHP enabled so I can use this if necessary).

My questions are:

1. How do I create the HTML for this in dreamweaver?
ie how do I create the form and submit button?
2. How do I store the email address in the text field into a text file? (using PHP or otherwise).

Many thanks in advance, much appreciated
ross
 
rossmcl, well you need some kind of a server side scripting language to do this, something like Coldfusion, ASP, PHP, etc.

Basicaly create a page (the extension would be different depending on what server side script you use, like coldfusion is .cfm, asp is .asp, etc.) For demenstration purposes i'll use .cfm, so create a register.cfm that asks the user for their name, email address and a radio-button option for what kind of e-mail the user wants, like HTML format or Text format. have register.cfm go to register_action.cfm, which basically thanks the user for registering. But also on that page, you store all the info. in a dB, to be called later on when you want to send an email out.

You add info to the dB like this:

<cfinsert datasource=&quot;yourdatasource&quot; tablename=&quot;table1&quot; formfields=&quot;name, email, emailformat&quot;>


That's the base gist of things. For more info, go here:

____________________________________
Just Imagine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top