I'm having a strange problem where by I can print out the contents of my variable fine but when I use this variable in the url its just blank.
Here's the bits of code that gets the variable
And here's the bit that constructs the url.
I've tried fiddling with this all night and I can't for the life of me get it to work.

Here's the bits of code that gets the variable
PHP:
$bandid = $_GET["bandid"];
print $bandid; //prints out the id just fine
And here's the bit that constructs the url.
PHP:
<a href="image_upload.php?bandid="$bandid"">Upload Image</a>
I've tried fiddling with this all night and I can't for the life of me get it to work.