Get Current URL from Firefox

Im not sure if this is the right forum, but here goes.

As part of my design job, I have to audit (nearly) complete websites, and flag pages that have issues for the developers. This involves alot of unnecessary copy/pasting of urls, as you can imagine.

I want to develop some kind of bookmark, where I press a link and it gets the current URL from firefox and then sends the link to a php script, which will then intern alert the developers. I figure the best way to do this is to write the script, and link from a bookmark in this format:

www.server.com/error.php?flag=[current_url]

This way allows me to make many different links for different problems, rather than typing endless emails. I can write the PHP to do this, but I have no idea how to pass the URL from firefox. Does anyone have a simple solution?