Skip to content Skip to sidebar Skip to footer

Is There A Compatible Way To Write Href?

For example, in file test.php: go; so that no matter where this test.php is, whether in Document_Root/Test/ directory or in Document_Ro

Solution 1:

To write a link that will only change the query string, just use

<ahref="?foo=bar">whatever</a>

So if you're at http://the/current/url.php, it goes to http://the/current/url.php?foo=bar, or if you're http://somewhere/else?entire=ly, it goes to http://somewhere/else?foo=bar.

Post a Comment for "Is There A Compatible Way To Write Href?"