Forums

Custom form with action setting (8 posts)

  1. brian flanagan
    Member
    Posted 1 year ago #

    I hope I'm completely missing something here, but I've searched through the forums and google and still haven't found a solution. I'm attempting to migrate an existing (very) simple 2-page website into WordPress. The original site had an email sign-up form that had an action attribute pointing to a thanks page. I'd like to replicate this functionality in WordPress, but for the life of me, I can't figure out how to get the action attribute to function correctly.

    I feel like I missed something somewhere because this is such basic web functionality that I can't believe it's not supported in WordPress. I've tried the Contact 7 email form, but it relies on an AJAX solution, which I don't really want to use.

    I've created my thanks page in the WordPress admin but when I try to use the url, it gives me an 'Oops, page not found' message. The url in the address bar is correct because if I refresh the page, my thanks page renders.

    Any help is appreciated.
    Thanks.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Try looking for an contact or email subscription form plugin.

  3. brian flanagan
    Member
    Posted 1 year ago #

    Thanks for the reply. I have tried a few plugins, but all of them seem to follow the same pattern of posting back to the current page or using an AJax solution.

    I'm curious that if there is a plugin out there that does offer this functionality, do you know which ones? Also, why would a plugin have functionality that couldn't be coded by hand in the native programming language?

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Just out of curiosity, what's the problem with Ajax? It's usually used to print new content to the page without forcing a page refresh or carrying out a page redirect. That's not something that PHP can do.

  5. brian flanagan
    Member
    Posted 1 year ago #

    While I'm very comfortable using Ajax, it's not a complete solution. There are still some folks out there who disable JavaScript, so I'd like to support graceful degradation at the very least.

    I guess the point of frustration comes from the fact that this is really, very basic web technology and I'm a bit disappointed that WordPress doesn't seem to support web functionality that's been around for literally decades now.

  6. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    The Secure Accessible Contact Form plugin did degrade gracefully but it's quite old and I'm not sure how well it will (or won't) work with WP 3.0. Mike Challis's Fast Secure Contact form plugin comes from the same roots but I've not tested it without js.

  7. brian flanagan
    Member
    Posted 1 year ago #

    Thanks for the help. It looks like Mike Challis' from handles the redirect, but you were right - it's using JS to do it. So, while it does support a redirect, it's not really using the action attribute for the form submission.

    (The Secure Accessible Contact Form documentation was out of date and it didn't seem to have an admin. I'll have to dig through the code to see if it functions without JavaScript.)

    So, I'm still looking... :)

  8. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    I'll have to dig through the code to see if it functions without JavaScript

    I know one of the authors (Mike Cherim) and use his non-WP version of that plugin on a client's static site. It degrades very nicely without js enabled. If I have any concerns, it's whether the plugin version can cope with the core changes post-WP 2.7.

Topic Closed

This topic has been closed to new replies.

About this Topic