Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old September 19th, 2000, 10:43 PM
Pepe Pepe is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 71 Pepe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
I have this line in my html:
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
<P><img src="http://www.upitnik.net/cgi-bin/email.cgi?ac=primio&ts=Tuesday, September 19, 2000 at 2:28:21&sa=purtic@hotmail.com"></P>
[/code]

and it is calling my script with all those variables.
What do I print from script so that picture would appear on that place in html?

[This message has been edited by Pepe (edited September 19, 2000).]

Reply With Quote
  #2  
Old September 20th, 2000, 01:22 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>it is calling my script with all those variables

You should change all those to something like this at the very least:

<img src="http://www.upitnik.net/cgi-bin/email.cgi?ac=primio&ts=Tuesday%2c+September+19%2c+2000+at+2%3a28%3a21&sa=purtic%40hotmail.com">

>>What do I print from script so that picture would appear on that place in html

You shouldn't worry about that. Instead, your script needs to know how to interpret the query string. Anyway, you need to show us your script and tell us what exactly you are trying to do maybe someone can help you out.

Reply With Quote
  #3  
Old September 20th, 2000, 09:29 PM
Pepe Pepe is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 71 Pepe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
My script knows how to interpret query string, that works fine. For what am I trying to do I would normally use SSI, but in this case I cant do that. Instead I'm using

<img src="http://www.upitnik.net/cgi-bin/email.cgi?ac=primio&ts=Tuesday%2c+September+19%2c+2000+at+2%3a28%3a21&sa=purtic%40hotmail.com">

line for calling my script. Script processes variables and saves some data files. That part is working fine.
I only need to return image requested by "<img src="http://........" in html, so that it appears in users browser instead of "missing image" icon.
Image that should appear in user browser is http://www.upitnik.net/fntdance.gif

[This message has been edited by Pepe (edited September 20, 2000).]

Reply With Quote
  #4  
Old September 20th, 2000, 11:03 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>For what am I trying to do I would normally use SSI

Why not? Start here -> http://www.devshed.com/Talk/Forums/Forum6/HTML/000255.html

Your html page should NOT contain that line <img src=http://blah blah>

Replace it with the following:

<!--#include virtual="/cgi-bin/email.cgi?ac=primio&ts=Tuesday%2c+September+19%2c+2000+at+2%3a28%3a21&sa=purtic%40hotmail.com"-->

change the & character to "& amp;" without space.

In your script:
#!/usr/local/bin/perl

&blah;
&foo;
&bar;

print "content-type: text/htmlnn";
#Your subroutines above need to determine what line to print in below
print "<img src="/url/path/to/image.gif">n";

[This message has been edited by freebsd (edited September 20, 2000).]

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Return image to html


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway