Skip to main content
2Charlie
Inspiring
Mar 17, 2016 7:47 PM UTC
Answered

How to submit a form to itself?

I have a cfform on the page. When I submit the form, I want to submit it to self. Another word, I do not want to submit to another .cfm page. So, how do I do it?

    This topic is closed to new replies. Start a new post to keep the conversation going.
    Carl Von Stetten
    Carl Von StettenCorrect answer
    Legend
    Mar 17, 2016 7:52 PM UTC

    If you omit the action attribute, it should submit to itself.

    15 replies

    BKBK
    Community Expert
    Community Expert
    Mar 17, 2016 8:55 PM UTC

    Old school: action="#CGI.SCRIPT_NAME#"

    Translate
    Carl Von Stetten
    Carl Von StettenCorrect answer
    Legend
    Mar 17, 2016 7:52 PM UTC

    If you omit the action attribute, it should submit to itself.

    Translate
    2Charlie
    2CharlieAuthor
    Inspiring
    Mar 17, 2016 7:59 PM UTC

    Cool! I'll test that tomorrow. Does that apply to all browsers or only certain browser?

    Translate
    Carl Von Stetten
    Legend
    Mar 17, 2016 8:18 PM UTC

    I think that's rudimentary <form> behavior, so it should work in all browsers.

    Translate
    Legend
    Mar 17, 2016 7:52 PM UTC

    It's dated but I think it still applies. I wrote a tutorial on this several years back: EasyCFM.COM - View Tutorial

    Hope this helps.

    Translate