php - GET - get the value and append to a link? -


i have query string in url:

?search=whatever 

i need append paginated links:

example.com/articles/p3/?search=whatever 

i can value using:

$_get['search'] //whatever 

but what's best way build string can append url. there proper way or case of appending string:

'?search='.$_get['search'] 

for building url's should use propper urlbuilder.

for php can use parse-url , http-build-query.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -