<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1012466" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1012466</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-script#comment-1072023</link>
    <description> &lt;p&gt;Hello.&lt;/p&gt;
&lt;p&gt;I hope the code below is what your looking for.  I have tested it and it ran fine.  &lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;#!/usr/bin/perl&lt;br /&gt;#Variables&lt;br /&gt;$error_url = &amp;#039;http://mainsite&amp;#039;; #URL if there an error occurs&lt;br /&gt;$top_url = &amp;#039;http://www.mainsite.com/topframe.html&amp;#039;; #URL to the top frame&lt;br /&gt;$html_title = &amp;#039;Link&amp;#039;; #title of framed page&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#Parsing any input&lt;br /&gt;&amp;amp;parse;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if($ENV{&amp;#039;QUERY_STRING&amp;#039;})&lt;br /&gt;{&lt;br /&gt;	#a url is in the $query string, go on with script&lt;br /&gt;	print &amp;quot;Content-type:text/html\n\n&amp;quot;;&lt;br /&gt;	print qq|&lt;br /&gt;	&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;$html_title&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;	&amp;lt;frameset framespacing=&amp;quot;0&amp;quot; border=&amp;quot;0&amp;quot; frameborder=&amp;quot;0&amp;quot; rows=&amp;quot;5%,95%&amp;quot;&amp;gt;&lt;br /&gt;	&amp;lt;frame scrolling=&amp;quot;no&amp;quot; noresize src=&amp;quot;$top_url&amp;quot; marginwidth=&amp;quot;1&amp;quot; marginheight=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;frame src=&amp;quot;$ENV{&amp;#039;QUERY_STRING&amp;#039;}&amp;quot; scrolling=&amp;quot;auto&amp;quot; marginwidth=&amp;quot;1&amp;quot; marginheight=&amp;quot;1&amp;quot; noresize&amp;gt;&lt;br /&gt;	&amp;lt;/frameset&amp;gt;&lt;br /&gt;	&amp;lt;html&amp;gt;	&lt;br /&gt;	|;&lt;br /&gt;	exit;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;	#error occured,probably no url entered, redirecting user to $error_url&lt;br /&gt;	print &amp;quot;Location: $error_url\nURI: $error_url\n\n&amp;quot;;&lt;br /&gt;	exit;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;sub parse {&lt;br /&gt;&lt;br /&gt;	(*fval) = @_ if @_ ;&lt;br /&gt;&lt;br /&gt;	local ($buf);&lt;br /&gt;	if ($ENV{&amp;#039;REQUEST_METHOD&amp;#039;} eq &amp;#039;POST&amp;#039;) {&lt;br /&gt;		read(STDIN,$buf,$ENV{&amp;#039;CONTENT_LENGTH&amp;#039;});&lt;br /&gt;	}&lt;br /&gt;	else {&lt;br /&gt;		$buf=$ENV{&amp;#039;QUERY_STRING&amp;#039;};&lt;br /&gt;	}&lt;br /&gt;	if ($buf eq &amp;quot;&amp;quot;) {&lt;br /&gt;			return 0 ;&lt;br /&gt;		}&lt;br /&gt;	else {&lt;br /&gt; 		@fval=split(/&amp;amp;/,$buf);&lt;br /&gt;		foreach $i (0 .. $#fval){&lt;br /&gt;			($name,$val)=split (/=/,$fval[$i],2);&lt;br /&gt;			$val=~tr/+/ /;&lt;br /&gt;			$val=~ s/%(..)/pack(&amp;quot;c&amp;quot;,hex($1))/ge;&lt;br /&gt;			$name=~tr/+/ /;&lt;br /&gt;			$name=~ s/%(..)/pack(&amp;quot;c&amp;quot;,hex($1))/ge;&lt;br /&gt;&lt;br /&gt;			if (!defined($field{$name})) {&lt;br /&gt;				$field{$name}=$val;&lt;br /&gt;			}&lt;br /&gt;			else {&lt;br /&gt;				$field{$name} .= &amp;quot;,$val&amp;quot;;&lt;br /&gt;&lt;br /&gt;			}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;		&amp;nbsp;&amp;nbsp; }&lt;br /&gt;		}&lt;br /&gt;return 1;&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;Just link your sites to&lt;br /&gt;
domain.com/cgi-bin/scriptname.cgi?http://link_here&lt;/p&gt;
&lt;p&gt;This will than create a frame in which the specified top frame appears, and the link is placed below it.&lt;/p&gt;
&lt;p&gt;Hope that helps&lt;/p&gt;
 </description>
     <pubDate>Sat, 30 Sep 2000 03:33:18 +0000</pubDate>
 <dc:creator>Rob Pengelly</dc:creator>
 <guid isPermaLink="false">comment 1072023 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-script#comment-1072018</link>
    <description> &lt;p&gt;you going to pay for it?&lt;/p&gt;
 </description>
     <pubDate>Fri, 29 Sep 2000 22:54:25 +0000</pubDate>
 <dc:creator>Orpheus</dc:creator>
 <guid isPermaLink="false">comment 1072018 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-script#comment-1072012</link>
    <description> &lt;p&gt;I don&#039;t recommend using the frames like that (or really any way at all!)... it will annoy your users and when they are annoyed, are they going to want to come back? I think not.&lt;/p&gt;
 </description>
     <pubDate>Fri, 29 Sep 2000 20:46:37 +0000</pubDate>
 <dc:creator>mjames</dc:creator>
 <guid isPermaLink="false">comment 1072012 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/need-script#comment-1071997</link>
    <description> &lt;p&gt;Hi Chris,&lt;/p&gt;
&lt;p&gt;  I may be way offbase here, but...&lt;br /&gt;
  Do you mean something like:&lt;/p&gt;
&lt;p&gt;  You can try to implement it in javascript, but it&#039;s a bad idea for 2 reasons:&lt;/p&gt;
&lt;p&gt;  1) the onUnload doesn&#039;t always fire&lt;br /&gt;
  2) many people object to being held hostage.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;br /&gt;
Vinny&lt;/p&gt;
 </description>
     <pubDate>Fri, 29 Sep 2000 15:48:25 +0000</pubDate>
 <dc:creator>Vincent Puglia</dc:creator>
 <guid isPermaLink="false">comment 1071997 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
