Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have the following program that s

Status
Not open for further replies.

samesale

Programmer
Sep 15, 2003
133
US
I have the following program that suppose to show a gif as a background. However, it does not work. That is, it does not show the sold.gif as background. Please help.

print &quot;<table><tr> <td bgcolor=\&quot; #FF99FF\&quot;>\n&quot;;
print'<style type=\&quot;text/css\&quot;>';
print'<!-- .bgImage { background-image: url(&quot;/images/sold.gif)&quot;\n';
print&quot; background-repeat: no-repeat&quot;;
print&quot; } --></style> &quot;;
print &quot;<div class=\&quot;bgImage\&quot; ></div>&quot;;

print&quot; $eyear<font color=\&quot;blue\&quot;> $make\n&quot;;
print &quot;</td></tr></table>\n&quot;;

print &quot;======================================================================\n<br>&quot;;
}
 
It's commented out, are you sure that's the correct syntax for a stylesheet?
--Paul
 
This stylesheet works in HTML. May be the way I rewrote in CGI is not correct.
 
Try the script on the command line

If the output is as designed your script is fine

Check a static version of what you want against the generated version - debug

HTH
--Paul
 
Just a guess but, it looks like you are passing a cgi server'a relative location back to a client that probably doesn't have that file structure. You should give a complete so that the client page can come back to your server and retrieve the file and display it.
 
Thanks for your help. I will try them and see what happens.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top