Gardner's performances saw him win an England cap in March 2004 against Sweden but he fell down the pecking order at White Hart Lane and was sent out on loan to Everton last January.
Zlatan Ibrahimovic hit the set-piece against the wall before his miscued volley fell to Mellberg, whose shot was parried by Joe Hart only to bounce off Glen Johnson and over the line.