Forums

Forms plugin calling ? (5 posts)

  1. mercator
    Member
    Posted 2 years ago #

    Hello,

    I have searched now for quite some time but cannot find what I need... Here's the question:

    Is there a plugin (like a contact form plugin) that let's me produce a fancy looking form and when I press the "Submit" button in the generated form, it calls a php scrip and passes the form fields as parameters?

    Thanks a lot for your help,
    Mercator

  2. Dagon Design
    Member
    Posted 2 years ago #

    I do not think so, as it would be an overly complex way to do it, especially as you have to manually declare query vars in WordPress before a script can process them, and it is much easier to just pass the info through $_POST.

    Is there a particular reason you needed them passed as parameters?

  3. mercator
    Member
    Posted 2 years ago #

    Nope, there is no reason (besides the fact that I already have those scripts and would need no change to them). Alternatively, A nice form generator, which allows me to add PHP code that is executed upon completion, would do as well.

    Thoughts?

  4. Dagon Design
    Member
    Posted 2 years ago #

    I personally like my own form mailer plugin ;) available at dagondesign.com

    You could modify the code to execute anything you like if you are familiar with PHP.

  5. mercator
    Member
    Posted 2 years ago #

    Actually, that is a neat idea... Modified the plugin and now it does what I want. I should post it as a new plugin :)

    Dragon Design: I modified about a dozen lines (inc comment) and it works as follows:
    If the "Success Page" starts with ***PHP***, I treat the rest as code and execute it at the appropriate position. That's it. I think this would be a great addition to your plugin. Please, let me know if you want the code.

    THANKS FOR YOUR HELP!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.