I'm not sure I understand if you're trying to get the contents of a variable called +filename+ or a variable called filename, but wouldn't it be one of these 2 solutions: $yourphpvariablename=$_GET['+filename+']; or $yourphpvariablename=$_GET['filename'];