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

Two HTML pages in one Perl CGI 1

Status
Not open for further replies.

darkom

Programmer
Apr 14, 2000
28
CA
Hi !<br><br>I have a CGI program in Perl that shows a HTML page with an animated GIF in it.<br><br>Here is the code :<br><br>&nbsp;&nbsp;&nbsp;&nbsp;print &quot;&lt;HTML&gt;&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;print &quot;&lt;HEAD&gt;&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;print &quot; &lt;TITLE&gt;Transfert !!&lt;/TITLE&gt;&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;print &quot;&lt;/HEAD&gt;&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;print &quot;&lt;BODY BACKGROUND=\&quot;../Images/fondtpv.jpg\&quot; NOSCROLL&nbsp;&nbsp;SCROLLING=\&quot;no\&quot; BGCOLOR=\&quot;#000000\&quot; TEXT=\&quot;#FFFFFF\&quot;&gt;&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;print &quot;&lt;DIV style='position:absolute; left:350; top:250; z-index:1'&gt;&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;print &quot; &lt;img src='../Images/uninstantb.gif' height='117' width='325' border='0'&gt;&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;print &quot;&lt;/DIV&gt;&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;print &quot;&lt;/BODY&gt;&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;print &quot;&lt;/HTML&gt;&quot;;<br><br>While this page is displayed some perl statments are running.<br>When they finish I display another HTML page that says &quot;transfer complete redirecting you to main menu&quot;<br><br>Here is the code :<br><br>&nbsp;&nbsp;&nbsp;&nbsp;print &quot;&lt;HTML&gt;&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;print &quot;&lt;HEAD&gt;&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;print &quot;&lt;META http-equiv=\&quot;Refresh\&quot; content=\&quot;15; URL=../router_exp_menu.html\&quot;&gt;&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;print &quot;&lt;/HEAD&gt;&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;print &quot;&lt;BODY BACKGROUND=\&quot;../Images/fondtpv.jpg\&quot; BGCOLOR=\&quot;#000000\&quot; TEXT=\&quot;#FFFFFF\&quot;&gt;&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;print &quot;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;print &quot;&lt;H2&gt;&lt;B&gt;&lt;CENTER&gt;&lt;FONT SIZE=5 COLOR=\&quot;#880080\&quot;&gt;Le transfert c'est terminé avec succès !!!&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;FONT SIZE=5<br>COLOR=\&quot;#808080\&quot;&gt;Vous êtes maintenant en cours de transfert vers la page principale des outils pour les routers&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;<br>&lt;/CENTER&gt;&lt;/H2&gt;&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;print &quot;&lt;H3&gt;&lt;B&gt;&lt;CENTER&gt;&lt;FONT SIZE=5 COLOR=\&quot;#880080\&quot;&gt;Un instant S.V.P. ! &lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;/CENTER&gt;&lt;/H3&gt;&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;print &quot;&lt;/BODY&gt;&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;print &quot;&lt;/HTML&gt;&quot;;<br><br>My problem is that the animated GIF still show in the second page even though it's not in the code, WHY ?<br>
 
It's my understanding that you cannot display more than one HTML page in a Perl script.&nbsp;&nbsp;So, it looks like what's really happening is that the second page you're sending is simply being added to the first page.&nbsp;&nbsp;Resending HTML, HEAD, and so forth does not start another page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top