tags:

views:

45

answers:

2

hey, i know it's not possible to get the hashvalue of an url with php, cause it's already executed on the server, but is it possible to write a hashvalue to a url with php like you can do with javascript?

regards matt

A: 

Like this...?

<a href="http://example.com/foo&lt;?php echo '#bar'; ?>">My Link</a>

Of course you won't be able to do it "like Javascript", since PHP does not work on the client side like Javascript. You can make links with an anchor part though, it's just strings.

deceze
A: 

hey, i know it's not possible to get the hashvalue of an url with php, cause it's already executed on the server

That's right.

but is it possible to write a hashvalue to a url with php like you can do with javascript?

You should be right again :P, you need javascript for that.

Sarfraz