Reputation: 33956
I want to get the url I'm on and then get what's after the =
For example if I were on: http://chusmix.com/?s=pizza
It should echo pizza
Upvotes: 1
Views: 156
Reputation: 2413
It's called a query string and can be retrieved via the $_GET associative array.
$_GET["s"]
Upvotes: 4