I am following this tutorial.
I made a Contact.php
template to customize this page. I copied and pasted everything that was needed.
I uploaded my validate.php
file to my themes file folder
public_html/test/wp-content/themes/themename
I have static pages, my main page is the front page while news is my posts page.
Every time I submit the form I get redirected to the news page but the URL says domain.com/test/
instead of domain.com/test/contact
(where the form is obviously located).
For my contact.php
template I just added the code I needed to the very top, underneath the template tag
and above the get_header tag
.
Here are pastes bins for my PHP pages: