Posted By

tylerhall on 11/30/-1


Tagged

http header location redirect


Versions (?)

Who likes this?

19 people have marked this snippet as a favorite

luman
postNuKe
terriK
vaaaska
mountainash
vali29
hudge
Firemarble
frara
irishsk
lfatr
nb109
vehler
dinkan
Darsain
hugeidea
wirenaught
voove
ringo380


Header Redirect


 / Published in: PHP
 

PHP code to redirect a user to another location.

  1. function redirect($url)
  2. {
  3. header("Location: $url");
  4. exit();
  5. }

Report this snippet  

You need to login to post a comment.