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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

images

Status
Not open for further replies.

bootbios

Technical User
Sep 2, 2006
5
US
Hi,

I am new to perl but have done some things with htm. I have created a webpage in htm to use as a form.

I have created a script in perl to process the form and to write to a mysql database. All is working fine up to the point of my generated response from the script.

I am generating an html respose to send back some information to the user and that part is working fine but I also want an image on the response page.

The result I am getting is the infamous red x. I know that this is a path problem in html and imagine that is the same using perl to generate the page but I cannot come up with the correct path. Am I doing something wrong or what.

HELP

Thanks and sorry about the long windedness.
 
First make sure the image is not in the cgi-bin. Put the image in a folder that has public access and then use the full URL of the image or a URL relative to the cgi-bin:

<img src="
or:

<img src="../images/frog.jpg">






- Kevin, perl coder unexceptional!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top