Title: Page conditional on form submit
Last modified: August 31, 2016

---

# Page conditional on form submit

 *  [watsonad](https://wordpress.org/support/users/watsonad/)
 * (@watsonad)
 * [10 years ago](https://wordpress.org/support/topic/page-conditional-on-form-submit/)
 * I want to direct a user to one front-end page if their front-end form submission
   meets certain criteria, and to a different front-edn page if the submission doesn’t
   meet the criteria. Something along the lines of:
 *     ```
       if($submit == 'incorrect response') {
           // go to incorrect_page_slug
       } else {
           // go to correct_page_slug
       }
       ```
   
 * On the backend (Admin), I would simply use wp_redirect, but this function does
   not work on the front end.
 * My site is currently being developed on a local server, so I cannot post a link.
 * Also, please do not respond with “use such-and-such plugin” to do this. I have
   spent 3 months testing every form-handling plugin I could find here, and none
   of them can do many-to-one database updates very fluidly, or at all.

The topic ‘Page conditional on form submit’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [watsonad](https://wordpress.org/support/users/watsonad/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/page-conditional-on-form-submit/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
