/ Published in: PHP
Remove all arguments from query string in URL except one
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$url = $_SERVER['PHP_SELF']; $new_url = $url_parts['scheme'].'://'.$url_parts['host'].$url_parts['path']; }