I have a form on a page that submits info to itself. When it is submitted, however, it refreshes the page to the theme directory/index.php
Let's say the form is on a page called mysite.com/survey (pretty permalinks are turned on). I want the form there to send the data to mysite.com/survey, but in my case it's sending the user to wp-content/themes/mytheme/index.php which results in an error, Fatal error: Call to undefined function language_attributes()
What am I doing wrong? If I pass the querystring with the get method, the page works, e.g. mysite.com/survey?zip=14226
Thanks for any help.