Support » Fixing WordPress » Can't get form action to post to itself

  • 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 (pretty permalinks are turned on). I want the form there to send the data to, 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.
    Thanks for any help.

Viewing 1 replies (of 1 total)
  • Hi – I have the opposite problem at the moment.

    with permalinks, form works fine with GET and POST

    with page_ids and GET, the action url is stripped and the form value is passed

    with page_ids and POST, seems to work okay, although that causes other problems for me but those are fixable.

    BUT I’d love to know why the default permalinks and GET combination fails goes to home page.

Viewing 1 replies (of 1 total)
  • The topic ‘Can't get form action to post to itself’ is closed to new replies.