Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default 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">&nbsp;</td>
    <td width="171"><!--user_id --></td>
    </tr>
    <tr>
    <td scope="row"><div align="right"><span
    class="style19"><span class="style20">* &nbsp;</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">* &nbsp;</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">* &nbsp;</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">* &nbsp;</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> &nbsp;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">* &nbsp;</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">&nbsp;</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">*&nbsp;</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">&nbsp;</span>birth city:</span>
    </div></td>
    <td><cfinput cfinput passthrough="dir='rtl'
    style=""font-family: Tahoma;"" onkeydown='vbscript:FarsiKe
    Benign Guest

  2. Similar Questions and Discussions

    1. 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...
    2. 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....
    3. 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....
    4. 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...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default 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

  5. #4

    Default Re: Confirmation Page

    you want someone to code those pages for you or you have them and they are throwing errors?
    revblont Guest

  6. #5

    Default 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

  7. #6

    Default 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

  8. #7

    Default 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

  9. #8

    Default 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

  10. #9

    Default 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

  11. #10

    Default Re: Confirmation Page

    Do you mean on my FormVerify.cfm?
    JacobMart Guest

  12. #11

    Default 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

  13. #12

    Default Re: Confirmation Page

    Thank You

    That solved the problem.
    JacobMart Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139