Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
Benign #1
confirmation page
Hi:
I need a confirmation page for my my registeration form. I mean after the user
filled the reg form and submited the form then a page opens that shows all the
info again and if the user confirms them by clicking the submit button it goes
to the database and if not he click the edit page that goes back and get the
oportunity to the user to change the info.
I made the reg form and it works fine but I need your help or any link for a
tutorial that helps me to make the confirmation page.
Thanks
benign
<cfparam name="name_first" default="" />
<cfparam name="name_last" default="" />
<cfparam name="email_all" default="" />
<cfparam name="password_all" default="" />
<cfparam name="passwrod_conf" default="" />
<cfparam name="SHENASNAMECITY" default="" />
<cfparam name="SHENASNAMENMUBER" default="" />
<cfparam name="grad_field" default="" />
<cfparam name="number_telephone" default="" />
<cfparam name="name_father" default="" />
<cfparam name="birth_date" default="" />
<cfparam name="researchfield" default="" />
<cfparam name="gender_all" default="" />
<cfparam name="DANESHGAHDEGREE" default="" />
<cfprocessingdirective pageencoding="utf-8">
<html>
<head>
<title>:::BRE:::</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<cfset bRegistrationSuccess = false />
<cfif IsDefined('FORM.register_button.y')>
<cfquery datasource="RandomQuestion" name="qUserCheck" >
SELECT *
FROM lcf_user
WHERE email_all = '#FORM.email_all#'
</cfquery>
<cfif IsDefined('FORM.register_button.y') AND
FORM.PASSWORD_all NEQ FORM.PASSWORD_CONF>
<cfset sHeaderMessage = 'pass conf is wrong' />
<cfoutput>#sHeaderMessage#
</cfoutput>
<cfelseif IsDefined('FORM.register_button.y') AND
FORM.name_first EQ "">
<cfset sHeaderMessage = 'enter ur name' />
<cfoutput>#sHeaderMessage#
</cfoutput>
<cfelseif IsDefined('FORM.register_button.y') AND
FORM.name_last EQ "">
<cfset sHeaderMessage = 'enter ur family' />
<cfoutput>#sHeaderMessage#
</cfoutput>
<cfelseif IsDefined('FORM.register_button.y') AND
FORM.name_father EQ "">
<cfset sHeaderMessage = 'enter ur father's name' />
<cfoutput>#sHeaderMessage#
</cfoutput>
<cfelseif IsDefined('FORM.register_button.y') AND
FORM.email_all EQ "">
<cfset sHeaderMessage = 'enter ur email' />
<cfoutput>#sHeaderMessage#
</cfoutput>
<cfelseif IsDefined('FORM.register_button.y') AND
FORM.password_all EQ "">
<cfset sHeaderMessage = 'enter ur pass' />
<cfoutput>#sHeaderMessage#
</cfoutput>
<cfelseif IsDefined('FORM.register_button.y') AND FORM.gender_all
EQ "">
<cfset sHeaderMessage = 'enter ur gender' />
<cfoutput>#sHeaderMessage#
</cfoutput>
<cfelseif IsDefined('FORM.register_button.y') AND FORM.birth_date EQ "">
<cfset sHeaderMessage = 'enter ur birthdate' />
<cfoutput>#sHeaderMessage#
</cfoutput>
<cfelseif IsDefined('FORM.register_button.y') AND
FORM.SHENASNAMENMUBER EQ "">
<cfset sHeaderMessage = 'enter ur ID number' />
<cfoutput>#sHeaderMessage#
</cfoutput>
<cfelseif IsDefined('FORM.register_button.y') AND
FORM.SHENASNAMECITY EQ "">
<cfset sHeaderMessage = 'enter ur birth city' />
<cfoutput>#sHeaderMessage#
</cfoutput>
<cfelseif IsDefined('FORM.register_button.y') AND FORM.DANESHGAHDEGREE
EQ "">
<cfset sHeaderMessage = 'enter ur degree' />
<cfoutput>#sHeaderMessage#
</cfoutput>
<cfelseif IsDefined('FORM.register_button.y') AND
FORM.grad_field EQ "">
<cfset sHeaderMessage = 'enter ur study field' />
<cfoutput>#sHeaderMessage#
</cfoutput>
<cfelseif IsDefined('FORM.register_button.y') AND FORM.researchfield EQ
"">
<cfset sHeaderMessage = 'enter ur research field' />
<cfoutput>#sHeaderMessage#
</cfoutput>
<cfelseif IsDefined('FORM.register_button.y') AND
FORM.number_telephone EQ "">
<cfset sHeaderMessage = 'enter ur phone number' />
<cfoutput>#sHeaderMessage#
</cfoutput>
<cfelseif qUserCheck.RecordCount NEQ 0>
<cfset sHeaderMessage = "some one reged with the same email"
/>
<cfparam default='' name="sHeaderMessage"/>
<cfoutput>#sHeaderMessage#
</cfoutput>
<cfelse>
<cfset bRegistrationSuccess = true />
</cfif>
</cfif>
<cfif NOT bRegistrationSuccess>
<cfform action="conf_regsiter.cfm" method="post">
<div align="center">req fields <span
class="style20">*</span> <br>
</div>
<table width="303" height="701" border="0" align="center"
cellpadding="0" cellspacing="0" dir="rtl" class="table" id="reg">
<tr>
<td width="132" scope="row"> </td>
<td width="171"><!--user_id --></td>
</tr>
<tr>
<td scope="row"><div align="right"><span
class="style19"><span class="style20">* </span>name </span></div></td>
<td><cfinput passthrough="dir='rtl' style=""font-family:
Tahoma;"" onkeydown='vbscript:FarsiKeyDown'
onkeypress='vbscript:FarsiKeyPress' " name="name_first" type="text"
id="name_first" value="#name_first#" ></td>
</tr>
<tr>
<td scope="row"><div align="right"><span
class="style19"><span class="style20">* </span>family</span> </div></td>
<td><cfinput passthrough="dir='rtl'
style=""font-family: Tahoma;"" onkeydown='vbscript:FarsiKeyDown'
onkeypress='vbscript:FarsiKeyPress'" name="name_last" type="text"
id="name_last" value="#name_last#" > <!-- --></td>
</tr>
<tr>
<td scope="row"><div align="right"><span
class="style19"><span class="style20">* </span>fathers name:</span>
</div></td>
<td><cfinput passthrough="dir='rtl' style=""font-family:
Tahoma;"" onkeydown='vbscript:FarsiKeyDown'
onkeypress='vbscript:FarsiKeyPress'" name="name_father" type="text"
id="name_father" value="#name_father#">
<!--name_father --></td>
</tr>
<tr>
<td scope="row"><div align="right"><span
class="style19"><span class="style20">* </span>email</span> </div></td>
<td><cfinput passthrough="dir='ltr' style=""font-family:
Tahoma;""" name="email_all" type="text" id="email_all" value="#email_all#">
<!--email --></td>
</tr>
<tr>
<td scope="row"><div align="right"><span
class="style19"><span class="style20">*</span> pass:</span> </div></td>
<td><cfinput passthrough="dir='ltr' style=""font-family:
Tahoma;""" name="password_all" type="password" id="password_all">
<!--password --></td>
</tr>
<tr>
<td scope="row"><div align="right"><span
class="style19"><span class="style20">* </span>pass conf:</span>
</div></td>
<td><cfinput passthrough="dir='ltr' style=""font-family:
Tahoma;""" name="password_conf" type="password" id="password_conf">
<!--password --></td>
</tr>
<tr>
<td scope="row"><div align="right"><span
class="style19"><span class="style20"> </span><span class="style19"><span
class="style20">*</span></span> gender:</span> </div></td>
<td><select style="font-size: 10px; font-family:
Tahoma;" name="gender_all" id="gender_all">
<cfquery name="gender_rec"
datasource="RandomQuestion">
SELECT gender.gender FROM gender
</cfquery>
<cfoutput query="gender_rec">
<option
value="#gender_rec.gender#">#gender_rec.gender#</option>
</cfoutput>
</select>
<!--gender --></td>
</tr>
<tr>
<td scope="row"><div align="right"><span
class="style19"><span class="style20">* </span>birthdate:</span>
</div></td>
<td><cfinput passthrough="dir='ltr' style=""font-family:
Tahoma;""" name="birth_date" type="text" id="birth_date" value="#birth_date#">
<!--birth_date --></td>
</tr>
<tr>
<td scope="row"><div align="right"><span
class="style19"><span class="style20"> </span>birth city:</span>
</div></td>
<td><cfinput cfinput passthrough="dir='rtl'
style=""font-family: Tahoma;"" onkeydown='vbscript:FarsiKe
Benign Guest
-
having problems getting FP forms processing to serve my asp confirmation page
The problem I'm having in a nutshell is that I've set up a frontpage form to save user input, the form submission also sends the user's inputs to an... -
Confirmation Page After Mail Script Processing
I've created a Flash page that processes a form and then sends the info to a mail script and then forwards the info to a designated e-mail address.... -
Form confirmation page
I have created a feedback form for a website and I would like to know how I can make the user go to a confirmation page after it has been submitted.... -
Email form results and show confirmation page
Hello, I'm rather new to Dreamweaver and have created a form where I want the results to be emailed to a fixed address and a confirmation page to... -
confirmation
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 What the heck!! This is getting ridiculous. Is someone really out to sign up ruby-talk in every... -
ntrlwmn #2
confirmation page
how do i create a confirmation page in dreamweaver. i'm real dumb and i need step by step instruction. thanks.
ntrlwmn Guest
-
JacobMart #3
Confirmation Page
I'm new to coldfusion, I have a form that sends the responces to a
simple(cparam, cfmail) formmailer.cfm, and now need a confirmation page that
basicly shows the user their responces, and they either select to confirm,
where it then goes to the form mailer, or choose to go back and change
something.
JacobMart Guest
-
revblont #4
Re: Confirmation Page
you want someone to code those pages for you or you have them and they are throwing errors?
revblont Guest
-
dempster #5
Re: Confirmation Page
You can have the form first submit to a formconfirm.cfm page that can process
it in a couple of ways.
One can show the responses in form input boxes for easy editing. The user can
make any changes and then submit to the form mailer.
Another way is to show responses in text display with the values in hidden
form fields. If the user selects confirm these hidden fields are sent to the
form mailer.
-Paul
dempster Guest
-
chuckomalley #6
Re: confirmation page
Your form will use the Insert behavior to put the info into the database. Make
the action after insert to go to the confirmation page's URL.
On the confirmation page, set up your recordset to sort descending. That will
put the last record (the one you just inserted) on top.
Bind the recordset fields to the page. Add your text, etc. as you wish to
complete the page.
Cheers
Chuck
chuckomalley Guest
-
JacobMart #7
Re: Confirmation Page
After taking a suggestion from a web page online, what I did on my first form,
instead of going to Formmailer.cfm, I change the form action to go to
FormVerify.cfm. (I created the new page FormVerify.cfm) Then, copied all of
the code between your <cfmail></cfmail> tag on Formmailer.cfm and pasted it on
the FormVerify.cfm page (making sure to put it between <cfoutput></cfoutput>
tags.
Putting this on the bottom of verify
<form action="Formmailer.cfm" method="post">
<cfoutput>
<cfloop list="#form.fieldnames#" index="f">
<input type="hidden" value="#jsstringformat(FORM[f])#" name="#f#">
</cfloop>
<input type="submit">
</cfoutput>
</form>
JacobMart Guest
-
JacobMart #8
Re: Confirmation Page
When I check the box that it errors on, It countinues to the next box, and
gives that error.
THE EXACT ERROR IS
Error Occurred While Processing Request
Error Diagnostic Information
An error occurred while evaluating the expression:
#Form.Event#
Error near line 62, column 18.
Error resolving parameter FORM.EVENT
The specified form field cannot be found. This problem is very likely due to
the fact that you have misspelled the form field name.
The error occurred while processing an element with a general identifier of
(#Form.Event#), occupying document position (62:17) to (62:37).
Date/Time: 06/16/05 15:13:34
Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8)
Gecko/20050511 Firefox/1.0.4
Remote Address: 70.107.241.191
HTTP Referrer: [url]http://www.mysite.com/allpages/form.htm[/url]
Please inform the site administrator that this error has occurred (be sure to
include the contents of this page in your message to the administrator).
JacobMart Guest
-
mthyvold #9
Re: Confirmation Page
Check boxes and Radio buttons are not sent to the action page unless they are
checked. When the code on your action page tries to evaluate the FORM.event
variable it throws an error when when it can't find it.
You can deal with this by using cfparam at the top of your action page to
provide a default (unchecked) value for the variable.
Magnus
mthyvold Guest
-
-
magnusthyvold #11
Re: Confirmation Page
What ever page is listed as the action=_____ on your form.
The thing is that values for checkboxes and radio buttons are only sent to the
processing page when they have been selected.
Your code can't evaluate the variable because, if it isn't selected, it won't
exist on the processing page.
You need to use cfparam to privide a default value of check to see if the
variable using an if statement and isDefined()
eg. <cfparam name="Form.Event" default=false>
or
<cfif isDefined("FORM.Event")
<cfoutput>#Form.Event#</cfoutput>
</cfif>
magnusthyvold Guest
-



Reply With Quote

