Skip to main content
Participant
November 27, 2008
Question

Feedback forms sending mail... all on the same page

  • November 27, 2008
  • 3 replies
  • 466 views
I am making a feedback form for my site that uses forms, and I need it to be sent to my email obviously. The thing is, I need all of this done on a single page, so that the user isn't redirected to a 2nd page where the code is handled, I need it all done on a single page. If anyone knows how to do this, please advise.
    This topic has been closed for replies.

    3 replies

    Inspiring
    November 27, 2008
    Here's one way:

    http://www.cfnoob.com/tutorials/cfform.cfm

    --
    Adobe Community Expert - Dreamweaver/ColdFusion
    Adobe Certified Expert - Dreamweaver CS3
    Adobe Certified Expert - ColdFusion 8
    Fordwebs, LLC
    http://www.fordwebs.com
    http://www.cfnoob.com


    "nouOU" <webforumsuser@macromedia.com> wrote in message news:ggl5cg$knu$1@forums.macromedia.com...
    >I am making a feedback form for my site that uses forms, and I need it to be
    > sent to my email obviously. The thing is, I need all of this done on a single
    > page, so that the user isn't redirected to a 2nd page where the code is
    > handled, I need it all done on a single page. If anyone knows how to do this,
    > please advise.
    >
    November 27, 2008
    <cfparam name="form.field" value="">
    <cfif form.field NEQ "">
    SEND YOUR MAIL IN HERE
    </cfif>
    <html>
    PUT THE REST OF THE FORM HERE

    And make sure that the form posts to itself... or you could use #cgi.SCRIPT_NAME# then it doesnt matter if your page name changes.
    November 27, 2008
    Post the form to the page it is on and have the form processing code at the top of the page
    nouOUAuthor
    Participant
    November 27, 2008
    quote:

    Originally posted by: eightcharacters
    Post the form to the page it is on and have the form processing code at the top of the page


    Can you please show me an example, I am sort of new to CF.