• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Looking for Submit Email Script

New Here ,
Oct 11, 2006 Oct 11, 2006

Copy link to clipboard

Copied

Does anyone have a script for simply a user submitting their email address for a newsletter?

I simply just want them to submit their email and it will go to the SQL database, and I will have it to send out our newsletter.

Thanks

Jeremy
TOPICS
Advanced techniques

Views

245

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 11, 2006 Oct 11, 2006

Copy link to clipboard

Copied

cfform for them to submit it
cfquery for you to store it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Oct 12, 2006 Oct 12, 2006

Copy link to clipboard

Copied

LATEST
Try this.
<cfmail to="youremail@youremail.com" from="#form.email#" subject="Registration" type="html">
<table>
<tr>
<th>Variable Name</th>
<th>Value</th>
</tr>
<!--- loop over the Form structure and output all
of the variable names and their associated
values --->
<cfloop collection="#Form#" item="VarName">
<cfoutput>
<tr>
<td>#VarName#</td>
<td>#Form[VarName]#</td>
</tr>
</cfoutput>
</cfloop>
</table>
<cfquery>
INSERT INTO mytable
(email)
values
('#form.email#')
</cfquery>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation