Contact form w/ action post or get not working (2 posts)

  1. kagurarap
    Posted 4 years ago #

    Hi everyone,

    I'm having trouble getting my contact form working where it calls the php for the form to work on an external page, then if it's successful, it will bring the user to a thank you page.

    <form action="siteUrlHere/wp-content/themes/blankslate/formStuff.php" method="post" class="emailForm"></form>

    When doing a contact form this way, am I calling the url to the form php wrong? Or is there something with the form action I need to change? (I've tried GET and POST)

    Thanks in advance!

  2. kagurarap
    Posted 4 years ago #

    I've got it! With method post and the url starting from the site url and wp-content path onwards. I had a copy of the form on the thank you and error page and I guess that might've been confusing it so once I removed those - it appeared to work! Awesome.

Topic Closed

This topic has been closed to new replies.

About this Topic