[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]
    Search the FAQ Archives

Single Page

Top Document: FAQ: Frequently Asked Questions about CGI Programming
Previous Document: 3.16 Can I write output to several frames at once?
Next Document: 3.18 How can I use Caches to make CGI scripts faster and more Net-friendly?


3.17 Can I use a CGI script to generate both text and inline images?



Not directly.   One script generates one response to one request.

If you want to generate a dynamic page including dynamic images
(say, a report including graphs, all of which depend on user input)
then your primary script will print the usual
   <img src="[script-to-generate-image]" alt="[what you asked for]">
and, just as in the multiple frames case, you can pass data to the
image-generating program encoded in a GET URL.   Of course, the same
caveats apply: see above.




Top Document: FAQ: Frequently Asked Questions about CGI Programming
Previous Document: 3.16 Can I write output to several frames at once?
Next Document: 3.18 How can I use Caches to make CGI scripts faster and more Net-friendly?

Single Page


[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
Nick Kew <nick@webthing.com>

Last Update December 05 2008 @ 00:13 AM

© 2008 FAQS.ORG. All rights reserved.