• I am migrating a site over to WordPress and my contact form will not work. Can I use my own contact form. It checks for required fields before sending an email. If everything is correct, then it uses mail() to send the email. Works great on the old site (without WordPress).

    So, it works somewhat. If I click submit it detects that I have not filled out the name field. When I fill out the name field and click submit I get a 404 error message. It did not check for the next required field (but, gave me an error).

    If I remove all checks…I still get the 404 error page.

    Do I need to use a plugin (I would like to keep my my styles).

    Any ideas/suggestions?

    Thanks in advance.

    mz

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    I suggest you to use the CFormII plugin. You can design it at your won

    http://www.deliciousdays.com/cforms-plugin

    Thanks,

    Shane G.

    Thread Starter zanfardinom

    (@zanfardinom)

    I check CFormII out and it has a lot of options. Why do I need to use a plugin…can’t my php contact page work?

    I have a default.php file that builds the form and a process.php file that sends the email. Just confused on why I can’t use my files.

    Thanks for the quick post.

    mz

    Hi,

    You can desiged and insert your own contact.php page. For that upload contact.php in your wordpress directory. Now, you can add that page in navigation and use it.

    Thanks,

    Shane G.

    Thread Starter zanfardinom

    (@zanfardinom)

    Hey Shane G.

    Thanks for your time and help. I tried the contact.php page. I have the form go to my process.php file and I get my custom 404 error message. Everytime it passes my first check (which is a check on the first form field to see if it is empty), but if I fill out the first field and test my second check to see if the second field is empty…I get the custom 404 error message from my 404.php page.

    So, I tried creating a process-contact.php template, then I created a page called process and set the process-contact.php file as the page template and same result.

    Any ideas?

    p.s. I removed all checks in my process.php page and still the same result.

    AHHHHHH!! 🙂

    Thanks in advance!

    mz

    Thread Starter zanfardinom

    (@zanfardinom)

    Sorry, I did not mean to post again. My original is the next reply up. 🙂

    mz

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘My own contact form’ is closed to new replies.