How do you get a PHP page with arguments to point to itself?
<p>I'm trying to make a page where, when a form is submitted, it returns to the page from where the form was called from. Normally, I'd just set the form action to <code>basename($_SERVER['SCRIPT_NAME']);</code> and it would work fine. The problem that I'm having is that the form on this page is now being called from a url like <code>www.yaddayadda.com/article.php?id=4</code>, so when I use <code>$_SERVER['SCRIPT_NAME']</code> it only returns <code>article.php</code>. Is there anyway to make it return the variables after the script name as well?</p>
