Title: Strange $_POST processing &#8211; Bug or Feature
Last modified: August 20, 2016

---

# Strange $_POST processing – Bug or Feature

 *  [laotse](https://wordpress.org/support/users/laotse/)
 * (@laotse)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/strange-_post-processing-bug-or-feature/)
 * If there are certain keywords for field names in the $_POST array, WP obviously
   interprets them in some way. The issue was reported long ago, e.g. [here in the support forum](http://wordpress.org/support/topic/submitting-form-to-wordpress-page).
   That post saved me from going nuts.
 * What I found was this. When the page containing the query is retrieved without
   any $_POST fields set, the following query is sent to the database:
    `SELECT 
   wp_posts.* FROM wp_posts WHERE 1=1 AND (wp_posts.ID = '236') AND wp_posts.post_type
   = 'page' ORDER BY wp_posts.post_date DESC`
 * But when $_POST[‘name’] is set to “Otto Normal” the following query is sent instead:
   `
   SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.post_name = 'otto-normal'
   AND wp_posts.post_type = 'post' ORDER BY wp_posts.post_date DESC`
 * $REQUEST_URI and $SCRIPT_FILENAME are identical, but eventually the latter request
   generates a 404.
 * Is this behaviour a bug or a feature? And if this is a feature, what would be
   its purpose?
 * BTW: If you are harassed by this behaviour, just rename the field.
 * Regards,
    – laotse.

The topic ‘Strange $_POST processing – Bug or Feature’ is closed to new replies.

## Tags

 * [form post](https://wordpress.org/support/topic-tag/form-post/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [laotse](https://wordpress.org/support/users/laotse/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/strange-_post-processing-bug-or-feature/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
