• 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: https://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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You can’t put php code directly in the page in WP.
    Install PHPexec plugin. That should remedy your problem.

    phpexec

    …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

    Thread Starter fillemon

    (@fillemon)

    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?

    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).

    Thread Starter fillemon

    (@fillemon)

    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.

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

    Thread Starter fillemon

    (@fillemon)

    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?

    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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Custom Contact Form’ is closed to new replies.