print "Content-type: text/html\n\n";
use CGI::Carp 'fatalsToBrowser';
if ( -e $greybackground.gif) { print "exists"};
print <<"EOF";
<HTML>
<HEAD>
<TITLE>join.success</TITLE>
</HEAD>
<BODY background=greybackground.gif>
<align=\"center\">
Submition Succesfull!\n
<H1><a href=\"http://pathto.mywebserver.net/home.html\"> <font size=\"5\">Home</font></a>\n</H1>
</BODY>
</HTML>
EOF
Everything else works. And no errors. But also no background :/
You can test it by typing a full path to your image and see if it actually shows the image or gives you a 500 error. Something like:
http*//www.widgets.com/cgi-bin/greybackground.gif