1

Possible Duplicate:
# in url getting ignored in php 5.2

I have following link on webpage. Here I am sending return(/profile?id=6#contacts) as url param to return back after operation complete. But it is sending only /profile?id=6 to verify.php script.

http://example.com/verify.php?id=1&sessionId=6&return=/profile.php?id=6#contacts

I know that hash value is not passed to server but I want to know that is there any way to pass compelete return param to server with # value.

Thanks

Community
  • 1
  • 1
Student
  • 1,843
  • 9
  • 37
  • 50

1 Answers1

4

You need to urlencode() the entire return parameter.

Pekka
  • 431,103
  • 135
  • 960
  • 1,075