I have a form mail script I am using in PHP

WHat I need to capture is the following

www.mysite.com/quote.php?ID=CODE

I need this CODE to be captured and to be sent within the email form

any help please
for now I am using this $content .= "ID: ". $HTTP_REFERER."\n"; to capture the refferer and it gives me the whole url