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

i would like to create a user interface for collecting email addresses 1

Status
Not open for further replies.

AlexUK

Programmer
Jun 26, 2000
24
GB
i would like to create a user interface for collecting email addresses (for a newsletter).

any suggestions for good tutorials/

thanks
 
Email collection page (collect.cfm)

<cfform action=&quot;maillist.cfm&quot; method=&quot;POST&quot;>
<cfinput type=&quot;text&quot; name=&quot;email&quot; size=&quot;10&quot; maxlength=&quot;50&quot;><br>
<input type=&quot;Submit&quot; value=&quot;Join!&quot;><br>
</cfform>
Send us your mail<br>
address to receive<br
our Newsletter!<br>

Action Page (maillist.cfm)


<CFINSERT datasource=&quot;yourdatasource&quot; tablename=&quot;maillist&quot; dbtype=&quot;ODBC&quot;>

<!--- Back to input page --->
<cflocation url=&quot;collect.cfm&quot;>

<!--- End --->

To verify email address format, I use CF_EmailVerify, so maillist.cfm looks like:

<CF_EmailVerify Email=&quot;#email#&quot;>
<CFIF #emailerror# EQ 1>
<cflocation url=&quot;leftframe.cfm&quot;>
</cfif>

<CFINSERT datasource=&quot;yourdatasource&quot; tablename=&quot;maillist&quot; dbtype=&quot;ODBC&quot;>

<!--- Back to input page --->

<cflocation url=&quot;collect.cfm&quot;>
 
liark

thanks, that answers my nest question as well:)

alex
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top