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!

FORM SUBMISSION NO THANK YOU REPLY

Status
Not open for further replies.

doctorcoldfusion

Programmer
Sep 16, 2002
14
US
Dear friends,
I submit form created in coldfusion and the contents of form get submitted in access database but I dont get "than you reply".Please visit and submit the form.Once submitted it doesnt give any thank you reply.

Advice please.

Below is the code
-----------------------------------------------------------


<CENTER><H1>POORMANSVOICE</H1>
<font size=2 face=&quot;arial,helvetica&quot;>

<cfif IsDefined(&quot;form.name&quot;)>

<cfquery datasource=&quot;poorman&quot;>
INSERT INTO info (name,address,city,state,zip,phone,email,comments)
VALUES ('#form.name#','#form.address#','#form.city#','#form.state#',
#form.zip#,#form.phone#,'#form.email#','#form.comments#')</cfquery>



<cflocation url=&quot;
<cfelse>

<form action=&quot;index.cfm&quot; method=&quot;post&quot;>
<table>
<tr><td><font size=2 face=&quot;arial,helvetica&quot;><html>
</head>
<body bgcolor=&quot;#0000FF&quot;><CENTER><h1>You want to serve Kashmiris<br> Fill the form please</h1><br><br color=#04jjjj>
NAME<br><input type=&quot;text&quot; name=&quot;name&quot; value=&quot;&quot;><BR>
Address<br><input type=&quot;text&quot; name=&quot;address&quot; value=&quot;&quot;><BR>
City<br><input type=&quot;text&quot; name=&quot;city&quot; value=&quot;&quot;><BR>
State<br><input type=&quot;text&quot; name=&quot;state&quot; value=&quot;&quot;><BR>
Zip<br><br><input type=&quot;text&quot; name=&quot;zip&quot; value=&quot;&quot;><BR>
Phone<br><input type=&quot;text&quot; name=&quot;phone&quot; value=&quot;&quot;><BR>
email<br><input type=&quot;text&quot; name=&quot;email&quot; value=&quot;&quot;><BR>
<center><h3>Comments,Affiliation and Profile</h3><br>
<textarea name=&quot;comments&quot; rows=&quot;&quot; cols=&quot;&quot;>
 
You don't seem to have any reply code.. I'm assuming you want an email sent...

on form submission:
Code:
<CFMAIL server=&quot;enter.mail.server.here&quot; to=&quot;#form.email#&quot; from=&quot;docCF@poormansvoice.org&quot; subject=&quot;Thank you&quot;>
Hey #Form.Name#,

Thanks for your comments at [URL unfurl="true"]www.poormansvoice.org..[/URL]

Poor Man's Voice</CFMAIL>
Did I help?
Vote!
 
Dear webmigit,
Where exactly shall I place this code in the form code.I placed it before </cfif>it gives me entirely different error.What I want is once user clicks submit button at in return it shall reply
&quot;thank you. Form has been submitted&quot;
Advice please
 
Oh well.. see you can't do that with your current setup.. You've got to change:

Code:
<cflocation url=&quot;[URL unfurl="true"]http://www.poormansvoice.com/index.cfm&quot;>[/URL]

to something like

Code:
<div align=&quot;center&quot;>Thank you. Your form has been submitted.</div>
..

Do not place it before the cflocation and just leave the cflocation there, that will in effect null the Thank you.

Oh, and sorry about the whole cfmail thing, got carried away...

Tony Did I help?
Vote!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top