try swapping the url to the image and css from relative to absolute, and move both out of the cgi-bin.
they should be somewhere like /var/www/html/images in the script they should link to the URL.. http://mydomain.com/images/gandhi.jpg see how you go with that. some setups will not server images and stuff from the cgi-bin. rgds Franki -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of L.V.Gandhi Sent: Tuesday, 26 November 2002 11:27 PM To: [EMAIL PROTECTED] Subject: [newbie] cgi help When I call the cgi file given below, I don't get the effects of stylesheet mentioned in the header and also the picture. both the files are in the same folder as that of the cgi file. =============================================== #!/usr/bin/perl print <<End; Content-Type: text/html\n\n <html> <head> <title>test</title> <link rel="stylesheet" type="text/css" href="teststyle.css" /> </head> <body> <h1>test</h1> <img src="gandhi.jpg" alt="My picture" height="153" width="131" align="left"> </body> </html> End ============================== I called the script with test .html given below. <html><head><title>Test</title></head> <body> <a href="cgi-bin/test1.pl">csstest<a><br> </body></html> What should be done to get the desired effect. -- L.V.Gandhi 203, Soundaryalahari Apartments, Lawsons Bay colony, Visakhapatnam, 530017 MECON, 5th Floor, RTC Complex, Visakhapatnam AP 530020 INDIA
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com