Advertisement
chrishajer

Redirect visitor if a duplicate is entered

Dec 26th, 2012
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.36 KB | None | 0 0
  1. <?php
  2. // http://www.gravityhelp.com/forums/topic/email-no-duplicates#post-108422
  3. // this will apply to any duplicates on form 21
  4. add_filter('gform_duplicate_message_21', 'redirect_browser', 10, 2);
  5. function redirect_browser($message, $form) {
  6.     header("Location: http://www.example.com/", TRUE, 302);
  7.     header("Location: http://www.example.com/");
  8.     exit;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement