0

I want to redirect the users to their pages after successful log in. Now I'm using:

header('Location: http://localhost/test/user.php?id='. $user);

and this give me this type of redirection: "http://localhost/test/user.php?id=john" I want my redirected URL look like this: "http://localhost/test/user.php/john" I've tried

header('Location: http://localhost/test/user.php/'. $user)

but it don't redirect properly.

ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
remux -
  • 37
  • 7

0 Answers0