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
Post a Comment