• Resolved doodlz

    (@doodlz)


    I’m using WordPress as a CMS for a business site. I’ve created an info request form on a Page using formmail.php. Does anyone know which directory I should put the formmail.php file for it to be accessed by the form?

    I’ve tried putting it in my theme’s directory and, at a separate time, the root of the site. In both cases, once I’ve filled out and sent the form, instead of taking me to my “thank you” Page, it says, “Sorry, no posts matched your criteria.” I also noticed, the url is “https://mysite.com/request-info/formmail.php” instead of “https://mysite.com/request-info/thank-you” So apparently it’s looking for the formmail.php file under the request-info Page, as if it was a Sub-Page or in that directory, which is why it’s not working. So how can my form access formmail?

    Thanks

Viewing 16 replies (of 16 total)
  • I’m having a similar issue. I’m putting a “tell a friend link. I created a page in wordpress under Manage Pages. The form comes up and when I click the button to access the php file, it doesn’t do anything. I’ve put my php file in several locations, right now I have it in the wp-includes, but I’ve put in my theme directory. Also, changed the path in the form to match. Still nothing. Of course, I’m a newbie on top of all that. Thanks for any help! :]

Viewing 16 replies (of 16 total)
  • The topic ‘How to use formmail.php with WordPress’ is closed to new replies.