Support » Fixing WordPress » PHP POST Form Returning 404??

  • Hi,
    I’m putting forms on my wordpress site. Right now I have 2 (more to come), a database search that uses GET, and a request form that uses post. The get one works fine, but the post one gets a 404 page. Whats even more strange is that when I hit enter on the 404 url, it comes up with the correct page (without the post data)! I’m using Permalinks (which work fine) and EZStatic for my PHP code, but I think it is a problem with WordPress.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Are you posting a field called “name”? I think that will cause you to get a 404 (I think because WordPress substitutes the “name” you post for the “name” of the requested page).

    Yes, always prefix your field names with something unique to your own form. Like “mypostform_name” and such. Substitute “mypostform” with something meaningful, of course.

    Using generic field names is problematic, at best. A lot of generic ones are used by WordPress itself.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP POST Form Returning 404??’ is closed to new replies.