0

Possible Duplicate:
How do I parse URL GET data having the URL stored in a variable?

Can I get the value from URL without requesting the page ( refresh ) or pressing on a link I need the value of p from this url

http://palestinianz.com/?page=person&p=Betty-Shamieh-

to use it in the og:title meta tag of Facebook

Community
  • 1
  • 1
Amer Enaya
  • 39
  • 2
  • 8

1 Answers1

0
$url = parse_url("http://palestinianz.com/?page=person&p=Betty-Shamieh-");
parse_str($url['query'], $data);
$p = $data['p'];
Aaron
  • 10,386
  • 13
  • 37
  • 53