WordPress.org

Ready to get started?Download WordPress

Forums

Custom Contact Form (9 posts)

  1. fillemon
    Member
    Posted 8 years ago #

    I've had a look through the forum, but I didn't find any answer to my question, so here goes...

    Since I'm using WordPress to build a website with several different contact forms, I want to write my own PHP contact form instead of using a plugin.

    I've tried putting a simple contact form on a page (similar to the one here: http://www.kirupa.com/web/php_contact_form.htm), but for some reason this doesn't seem to be working. Is this because you can't just use php code one a page, do I need any additional code, ... ? I just can't find the problem.

    Any help would be greatly appreciated.

  2. dwest
    Member
    Posted 8 years ago #

    You can't put php code directly in the page in WP.
    Install PHPexec plugin. That should remedy your problem.

    phpexec

  3. olivers
    Member
    Posted 8 years ago #

    ...not sure what the problem is fillemon, but you could take a look at the code I threw together and pick out the pieces you need - just a thought.

    Good luck,
    Oliver

  4. fillemon
    Member
    Posted 8 years ago #

    Tnx Olivers, I used your excellent plugin and with a few changes to the css-file file I got exactly the result I wanted.

    I know this is another topic alltogether, but would you happen to know how I could let visitors attach and send an image using the form?

  5. olivers
    Member
    Posted 8 years ago #

    fillemon, i'm glad you find it useful. attachments are currently not supported by cforms, but it is on the todo, perhaps will even make it into v2.2 (next release).

  6. fillemon
    Member
    Posted 8 years ago #

    That would be great since there is no other (working) plugin that does the job unfortunately.

    One last question: is it possible to have a dropdown menu using cforms? That type of field doesn't seem to be implemented.

  7. olivers
    Member
    Posted 8 years ago #

    fillemon, yep - it does support drop down. I just released v2.5 ...

  8. fillemon
    Member
    Posted 7 years ago #

    Great, tnx. I'm pretty sure this is a complete noob question, but is there a way to upgrade your plugin to the latest version without deleting the cforms I've already created?

  9. olivers
    Member
    Posted 7 years ago #

    Yes, simply deactivate & replace the plugins' (/contactforms/) directory, activate the new release and you're good to go!

    By the way, v3 now has Backup & Restore features which not only give you "additional safety" but also allow for quick deployment of similar forms on different blogs etc.

Topic Closed

This topic has been closed to new replies.

About this Topic