Form Submit Changes Current Page to Homepage
I have a form which is a contact form, but when it gets submitted it stays at the same URL, yet the page changes to the homepage… I’m not sure what I did to make it stay on the same page after the form was submitted, but it used to stay on that page a couple of times when I was playing around with it.
<form action="<?php the_permalink(); ?>" method="POST">
Then I just put a if(isset($_POST[‘submitted’])) to see if the form was submitted, and it has been, i put this code on both the homepage and the contact page.
- The topic ‘Form Submit Changes Current Page to Homepage’ is closed to new replies.