Link to home
Start Free TrialLog in
Avatar of zgee
zgee

asked on

Why doesn't my "wallpaper" show?

I have a wallpaper background I would like my CGI program (on a UNIX server) to use when it returns a page to the user. Here is an example:

#part of a cgi program
sub error {

      print<<EOF;
Content-type: text/html

<HTML>
<HEAD>
<TITLE>Error</TITLE>
</HEAD>
<BODY BACKGROUND="bground.gif">
<P>Name and address fields must be filled in for this form to be submitted successfully
</BODY>
</HTML>
EOF
}

When I do this, I get the annoying "Document contains no data". However, if I omit BACKGROUND=bground.gif, the program works, and I get the defalut grey background. I have 2 copies of bground.gif - one in my public_html directory and the other in my cgi-bin. What am I doing wrong?
Avatar of zgee
zgee

ASKER

Edited text of question
ASKER CERTIFIED SOLUTION
Avatar of evilgreg
evilgreg

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zgee

ASKER

Thanks, evilgreg.

I will try what you suggested tomorrow...
Avatar of zgee

ASKER

I've done what you suggested above, however the wallpaper still doesn't show.....