Home › Forums › Back End › WordPress blank page on form submission, No plugin just PHP › Reply To: WordPress blank page on form submission, No plugin just PHP
April 5, 2015 at 9:41 pm
#199811
Sagive SEO
Participant
since your using WordPress i would skip the whole refresh page to submit a form and use ajax…
That makes the whole error checking simpler and also helps you avoid the refresh which is just 1990.
Here is the HTML code: http://pastebin.com/iwe8WESv
Here is JS code: http://pastebin.com/vYzAy0kA
Here is the PHP code: http://pastebin.com/AShhpZek
Place JS & PHP file in a folder named “ajax” in your theme folder, include the PHP file in your functions.php file and your done.
Best of luck ;)