Which variables? The ones submitted to your script, or the ones submitted to the referrer? If you mean the variables submitted to your script, just append $QUERY_STRING. If you mean the ones submitted to the referrer, there's no way for you to get them.
Diego