im trying to use jquery bbq for remembering page with ajax.
but i wonder, why should i use # values and not ? values for remembering pages eg.
?country=1®ion=2
then get the values with $_GET and display the appropiate info
vs
#country=1®ion=2
cause the latter one i cannot get it with php right?
Because
is bad URL syntax.
This is correct:
and this is also correct:
Note, that # values must go AFTER ?-& values. This rule is not from PHP or jQuery, this is basic URL syntax.
P.S. String after # is not sent to web server (and PHP can’t get it), so you HAVE to use valid syntax.