title: PHP: Change URL parameter
body: <p>This is what I have    </p>
  
  <pre><code>echo '&lt;button&gt;&lt;a href="'.$_SERVER['REQUEST_URI'].'&amp;startrow='.($startrow+100).'"&gt;Next 100&lt;/a&gt;&lt;/button&gt;';
  </code></pre>
  
  <p>I have 2 parameters in my url one is campaign, second is startrow, how can I just remove 'startrow' parameter and its value from the url. I want something like this.</p>
  
  <pre><code>echo '&lt;button&gt;&lt;a href="'.REMOVE &amp;startrow=x($_SERVER['REQUEST_URI']).'&amp;startrow='.($startrow+100).'"&gt;Next 100&lt;/a&gt;&lt;/button&gt;';
  </code></pre>
  
  <p>When I press the next 100 button, the page reloads and it adds startrow parameter in the url hence if I pressed next 100 button 5 times, I have 5 startrow paramter in the url, so I want to remove the previous startrow parameter first then add the new one</p>
  
  <p><strong>My actual url:</strong> enquirytable.php/campaign=all&amp;startrow=100</p>
  
  <p><strong>When I click on Next 100 button:</strong> enquirytable.php/campaign=all&amp;startrow=100&amp;startrow=200</p>
  
  <p><strong>What I want:</strong> enquirytable.php/campaign=all&amp;startrow=200</p>