Ready to get started?Download WordPress


PHP POST Form Returning 404?? (3 posts)

  1. freesoft
    Posted 8 years ago #

    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.

  2. nds
    Posted 8 years ago #

    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).

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 8 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic