Solved

Inserting TEXT + GRAPHICS onto HTML PAGE

Posted on 1998-05-11
2
173 Views
Last Modified: 2013-12-25
I want to insert a graphical image with its respective TEXT description onto my HTML webpage from my CGI script. Normally if I were to insert the graphical image, I would call my CGI script with the <IMG> tag. Since I need to insert the respectiove text description with the graphics the <IMG> tag is useless now. Presently, to access my special HTML page it calls NPH-T.CGI script.  This script will open the special HTML page and lterally insert the GRAPHICAL IMAGE + TEXT. Its output will reveal the proper HTML page.

Is there perhaps a more effiecent way of doing this?   Perhaps I should use SSI?

Any help would be greatly appreciated!
0
Comment
Question by:mirror
2 Comments
 
LVL 2

Accepted Solution

by:
WileyKat earned 50 total points
ID: 1828416
SSI is your answer. Have your HTML page use an SSI such as <!--#exec cgi="insert.cgi"--> then have the CGI return a multipart/mixed MIME type to the browser, sending first the image as one part (image/gif or image/jpeg), then the text as the other (text/html or text/plain).
0
 

Author Comment

by:mirror
ID: 1828417
Thanks a million!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question