<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>SalesCart Forums : checkpost.asp sub questi&#111;n</title>
  <link>http://forum.salescart.com/forum/</link>
  <description><![CDATA[This is an XML content feed of; SalesCart Forums : SalesCart Standard / PRO / SQL : checkpost.asp sub questi&#111;n]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 05:19:21 +0000</pubDate>
  <lastBuildDate>Mon, 25 Jul 2005 12:06:53 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.salescart.com/forum/RSS_post_feed.asp?TID=387</WebWizForums:feedURL>
  <image>
   <title><![CDATA[SalesCart Forums]]></title>
   <url>http://forum.salescart.com/forum/forum_images/web_wiz_forums.png</url>
   <link>http://forum.salescart.com/forum/</link>
  </image>
  <item>
   <title><![CDATA[checkpost.asp sub questi&#111;n : Figured it out. ]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=387&amp;PID=1391&amp;title=checkpostasp-sub-question#1391</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=6">lleemon</a><br /><strong>Subject:</strong> 387<br /><strong>Posted:</strong> July/25/05 at 12:06pm<br /><br />Figured it out.  ]]>
   </description>
   <pubDate>Mon, 25 Jul 2005 12:06:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=387&amp;PID=1391&amp;title=checkpostasp-sub-question#1391</guid>
  </item> 
  <item>
   <title><![CDATA[checkpost.asp sub questi&#111;n : Just trying out the postpone option...]]></title>
   <link>http://forum.salescart.com/forum/forum_posts.asp?TID=387&amp;PID=1390&amp;title=checkpostasp-sub-question#1390</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.salescart.com/forum/member_profile.asp?PF=6">lleemon</a><br /><strong>Subject:</strong> 387<br /><strong>Posted:</strong> July/25/05 at 11:57am<br /><br />Just trying out the postpone option on the form element and get it to work on one site but not on another but really not sure why.  After looking into this I find the routine checkReferer in file checkpost.asp.  My question is, the way this is setup, wouldn't it be wrong everytime?  <br /><br />Request.ServerVariables("HTTP_REFERER") is http://www.domain.com/sample.asp<br /><br />Basically, get domain name into two variables:<br />ServerURL = "http://www.domain.com"<br />ServerURL2 = "https://www.domain.com"<br /><br />The next section gets just the domain name from the url passed and based on length of the ServerURL it gets that info:<br />TestURL = "http://www.domain.com"<br />TestURL = "http://www.domain.com/"<br />Then it checks to see if strings are different.<br /><br /><br /><br /><table width="99%"><tr><td><pre class="BBcode"><br />Function checkReferer()<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Get Name/Address of this Server<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ServerURL="http://" + Request.ServerVariables("SERVER_NAME")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ServerURL2="https://" + Request.ServerVariables("SERVER_NAME")<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Find length of Name/Address of this Servers URL<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CheckLength=len(ServerURL)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CheckLength2=len(ServerURL2)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Make the URL to Test<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TestURL=left(Request.ServerVar iables("HTTP_REFERER"),CheckLength) <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TestURL2=left(Request.ServerVa riables("HTTP_REFERER"),CheckLength2) <br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If TestURL &lt;&gt; ServerURL and TestURL2 &lt;&gt; ServerURL2 Then<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; checkReferer = 0<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Else<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; checkReferer = 1<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End If<br /><br />End Function<br /></pre></td></tr></table><br /><br />Wouldn't TestURL2 always be wrong if your not coming from a secure (https) location? And then TestURL would be wrong if coming from a secure location?<br /><br />Needs some clarification on this one.<br />Thanks.]]>
   </description>
   <pubDate>Mon, 25 Jul 2005 11:57:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.salescart.com/forum/forum_posts.asp?TID=387&amp;PID=1390&amp;title=checkpostasp-sub-question#1390</guid>
  </item> 
 </channel>
</rss>