0

How to make for example www.example.com#test ?

I know how to use switches for www.example.com?test=1

But I really need www.example.com#test

Is there possibility to use $_GET function to make it do something?

Rik Telner
  • 179
  • 1
  • 10
  • [This](http://stackoverflow.com/questions/2317508/php-get-value-from-url-after-sign/2317518#2317518) might help you. – SeanWM Jun 21 '13 at 15:03

1 Answers1

0

http://www.w3.org/TR/WD-htmllink-970328

"URLs can also be used to name locations within HTML documents using the fragment     identifier syntax, e.g.

 See: <a href="#s3.2">section 3.2</a> for details.
      ...
  <a name="s3.2">Section 3.2</a>The Bigger Picture"
eatonphil
  • 13,115
  • 27
  • 76
  • 133
  • I didn't mean this. On some websites there's possibility to use #links to show/execute previously hidden/unexecuted text(or div)/code. – Rik Telner Jun 21 '13 at 15:02
  • 2
    The # information is never sent to the server. So you could not get it do anything with php. You could probably get it to do something with Javascript (and AJAX and therefore trigger PHP). – eatonphil Jun 21 '13 at 15:06
  • Using page fragments to control the view state is a sign that they are using a client side MVVC framework. – Orangepill Jun 21 '13 at 15:25