Are you a regular stikked user? Signup so you can keep track of your pastes!

RE: Untitled

By Spockz, 1 Year ago, written in PHP. This paste is a reply to Untitled by OllieR
URL http://stikked.com/view/41627302
  1. This redirects when post data is USA
  2.  
  3.         function us_redirect()
  4.         {
  5.                  header('Location:http://www.newamericanvision.com/eotl/screenings.html');
  6.         }
  7.         function search()
  8.         {
  9.                 if ($this->input->post('location') == "USA")
  10.                 {
  11.                         redirect('frontend/us_redirect');
  12.                 }
  13.         }
  14.  
  15. --------------------------------------------
  16.  
  17. This does not redirect
  18.  
  19.         function search()
  20.         {
  21.                 if ($this->input->post('location') == "USA")
  22.                 {
  23.                          header("Location: http://www.newamericanvision.com/eotl/screenings.html");
  24.                 }
  25.         }
  26.  
  27.  

Reply to "RE: Untitled"

Here you can reply to the paste above

Create a snipurl

Make Private

Feeling clever? Set some advanced options.