Advertisement
Guest User

redir111

a guest
Jul 13th, 2012
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.30 KB | None | 0 0
  1. add_filter("gform_confirmation", "custom_confirmation", 10, 4);
  2.  
  3. function custom_confirmation($confirmation, $form, $lead, $ajax){
  4. $redirurl = $_SERVER['HTTP_REFERER'];
  5.  
  6.     if($form["id"] == "3"){
  7.         $confirmation = array();
  8.         $confirmation['redirect'] = $redirurl;
  9.     }
  10.     return $confirmation;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement