<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1012743" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1012743</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Much better</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/i-need-help-again-how-can-i-get-some-general-userinformation#comment-1074286</link>
    <description> &lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I have been looking at the 2 scripts, and it seems like I can make it with that information...&lt;/p&gt;
&lt;p&gt;I am not using netscape either, so if anyone is reading this, can you please tell me, what result it will give... Max thourght that it is :&#039;Netscape&#039; but I cant know, since I have no way of detecting it...&lt;br /&gt;
Can you help me out on this, someone?&lt;/p&gt;
&lt;p&gt;Anyway, that ansvered 1 of my questions... I allso need to find the OS, I dont suppose that that will be hard, I think that you can just do it the same way, as the other...&lt;br /&gt;
I think that I will store the OS in 2 variables, one called PC, and one called MAC&lt;br /&gt;
What exactly shall I search for, when I want to find out weather it is a mac? Can I be that lucky, so that I can just split it up after the word &quot;mac&quot;??&lt;/p&gt;
&lt;p&gt;Anyway, thanks for you help&lt;br /&gt;
-Casper&lt;/p&gt;
 </description>
     <pubDate>Sat, 18 Nov 2000 09:12:42 +0000</pubDate>
 <dc:creator>hotcut</dc:creator>
 <guid isPermaLink="false">comment 1074286 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/i-need-help-again-how-can-i-get-some-general-userinformation#comment-1074274</link>
    <description> &lt;p&gt;this will have serveral steps.&lt;br /&gt;
&lt;strong&gt;Step 1:&lt;/strong&gt;&lt;br /&gt;
Query your DB and get the current number for each browser.&lt;br /&gt;
&lt;strong&gt;Step 2:&lt;/strong&gt;&lt;br /&gt;
Detect the browser in use, and increment the number.&lt;br /&gt;
&lt;strong&gt;Step 3:&lt;/strong&gt;&lt;br /&gt;
Put the numbers back into the DB.&lt;/p&gt;
&lt;p&gt;From where I&#039;m standing, there is no need to store the browser or OS in a var.  Just &#039;look&#039; for them in the HTTP_USER_AGENT and increment.  I made two codes.  The first is mine. The second is what I think you&#039;ll need to use Peter&#039;s code.&lt;/p&gt;
&lt;p&gt;I&#039;ll let you decide how you set up your DB, and put the value into vars.  So I&#039;ll start my code with those vars.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;%&lt;br /&gt;&amp;#039;STEP 1 will return vars like this:&lt;br /&gt;&amp;#039;IE = count for Internet Explorer&lt;br /&gt;&amp;#039;NN = count for Netscape&lt;br /&gt;&amp;#039;Other = count for everything else (duh)&lt;br /&gt;&lt;br /&gt;&amp;#039;STEP 2&lt;br /&gt;UserAgent = Request.ServerVariables(&amp;quot;HTTP_USER_AGENT&amp;quot;) &lt;br /&gt;If InStr(1,UserAgent, &amp;quot;MSIE&amp;quot;) &amp;lt;&amp;gt; 0 Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#039;NOTE this will catch &amp;quot;MSIE 5.0&amp;quot; and &amp;quot;MSIE 5.5&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IE = IE + 1&lt;br /&gt;ElseIf InStr(1,UserAgent, &amp;quot;Netscape&amp;quot;) &amp;lt;&amp;gt; 0 Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#039;I don&amp;#039;t use NN so I&amp;#039;m guessing that it returns &amp;#039;Netscape&amp;#039; something&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NN = NN + 1&lt;br /&gt;Else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Other = Other + 1&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;&amp;#039;STEP 3 will put the vars back into the DB&lt;br /&gt;SQLstmt = &amp;quot;UPDATE ...&lt;br /&gt;%&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;%&lt;br /&gt;&amp;#039;STEP 1 will return vars like this:&lt;br /&gt;&amp;#039;IE = count for Internet Explorer&lt;br /&gt;&amp;#039;NN = count for Netscape&lt;br /&gt;&amp;#039;Other = count for everything else (duh)&lt;br /&gt;&lt;br /&gt;&amp;#039;STEP 2&lt;br /&gt;UserAgent = Request.ServerVariables(&amp;quot;HTTP_USER_AGENT&amp;quot;) &lt;br /&gt;&lt;br /&gt;UserAgentLength = Len(UserAgent) &lt;br /&gt;FindFirstSplit = CInt(InStr(1,UserAgent,&amp;quot;;&amp;quot;)) + 1 &lt;br /&gt;FindSecondSplit = CInt(InStrRev(UserAgent,&amp;quot;;&amp;quot;)) + 1 &lt;br /&gt;FirstLength = CInt(FindSecondSplit - FindFirstSplit) - 1 &lt;br /&gt;SecondLength = CInt(UserAgentLength - FindSecondSplit) &lt;br /&gt;ExtractBrowser = Mid(UserAgent,FindFirstSplit,FirstLength) &lt;br /&gt;ExtractOS = Mid(USerAgent,FindSecondSplit,SecondLength) &lt;br /&gt;&lt;br /&gt;If InStr(1,ExtractBrowser, &amp;quot;MSIE&amp;quot;) &amp;lt;&amp;gt; 0 Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#039;NOTE this will catch &amp;quot;MSIE 5.0&amp;quot; and &amp;quot;MSIE 5.5&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IE = IE + 1&lt;br /&gt;ElseIf InStr(1,ExtractBrowser, &amp;quot;Netscape&amp;quot;) &amp;lt;&amp;gt; 0 Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#039;I don&amp;#039;t use NN so I&amp;#039;m guessing that it returns &amp;#039;Netscape&amp;#039; something&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NN = NN + 1&lt;br /&gt;Else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Other = Other + 1&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;&amp;#039;STEP 3 will put the vars back into the DB&lt;br /&gt;SQLstmt = &amp;quot;UPDATE ...&lt;br /&gt;%&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;Notice that whether the &#039;browser&#039; is put into an array or not, you have to &#039;look&#039; for the browser?  You can&#039;t just say if &lt;strong&gt;ExtractBrowser = &quot;MSIE&quot; Then&lt;/strong&gt; because you&#039;d have to check it against every variation of IE (MSIE 5.0, MSIE 5.5, etc.).&lt;/p&gt;
&lt;p&gt;If I&#039;m wrong, let me know.  There may well be an easier way of doing this.&lt;/p&gt;
 </description>
     <pubDate>Sat, 18 Nov 2000 03:29:27 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1074274 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/i-need-help-again-how-can-i-get-some-general-userinformation#comment-1074260</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: &lt;em&gt;Originally posted by Max Albert &lt;/em&gt;&lt;br /&gt;
&lt;strong&gt;unless your going to spit out the values to the visitor, your going to have to evaluate the value of the vars everytime you want to use them.&lt;br /&gt;
So, intead of evaluating a custom var, I like to evaluate the environmental var.&lt;br /&gt;
that saves me the lines of code that it took you to put the values into custom vars.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Make sense? &lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;ehhh... no &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;As I said before, I want to make a statistik counter.&lt;br /&gt;
I want to make the page save the different OS-, and browser-types into a database.&lt;br /&gt;
So what I need is just to put it all into variables, and then put them into the database.&lt;/p&gt;
&lt;p&gt;I conclude that Peter&#039;s solution will be the most propper one for my need.&lt;/p&gt;
&lt;p&gt;The problem is then... How do I make the script, so that it will deteckt weather the user is using netscape, microsoft, or other. &lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;I am using netscape.&lt;br /&gt;
I have 3 variables.&lt;br /&gt;
1: dim netscape&lt;br /&gt;
2: dim microsoft&lt;br /&gt;
3: dim other&lt;/p&gt;
&lt;p&gt;Then I want the value of the variables (in my example) to be:&lt;br /&gt;
netscape = 1&lt;br /&gt;
microsoft = 0&lt;br /&gt;
other = 0&lt;/p&gt;
&lt;p&gt;etc...&lt;/p&gt;
&lt;p&gt;So that I will store the data in 3 variables, like that... I think that you should use something like&lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;
if browser &amp;lt;&amp;gt; microsoft AND browser &amp;lt;&amp;gt; netscape then&lt;br /&gt;
netscape = 0&lt;br /&gt;
microsoft = 0&lt;br /&gt;
other = 1&lt;br /&gt;
&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;But in realaty, that wont work... Can you please tell me how to do that?&lt;/p&gt;
&lt;p&gt;Sincere&lt;br /&gt;
-Casper&lt;/p&gt;
 </description>
     <pubDate>Fri, 17 Nov 2000 19:30:18 +0000</pubDate>
 <dc:creator>hotcut</dc:creator>
 <guid isPermaLink="false">comment 1074260 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/i-need-help-again-how-can-i-get-some-general-userinformation#comment-1073831</link>
    <description> &lt;p&gt;unless your going to spit out the values to the visitor, your going to have to evaluate the value of the vars everytime you want to use them.&lt;br /&gt;
So, intead of evaluating a custom var, I like to evaluate the environmental var.&lt;br /&gt;
that saves me the lines of code that it took you to put the values into custom vars.&lt;/p&gt;
&lt;p&gt;Make sense?&lt;/p&gt;
 </description>
     <pubDate>Fri, 10 Nov 2000 03:19:09 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1073831 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/i-need-help-again-how-can-i-get-some-general-userinformation#comment-1073805</link>
    <description> &lt;p&gt;Max,&lt;/p&gt;
&lt;p&gt;Our code is totally different, you&#039;re searching the HTTP_USER_AGENT for a match whereas I am extracting the browser and OS information and storing them in variables.&lt;/p&gt;
&lt;p&gt;If I just wanted to do detection then your code makes sense, but from my interpretation of hotcut&#039;s last post it sounded like he wanted to separate and store the values not just detect which browser or OS.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;
Peter J. Boettcher&lt;/p&gt;
 </description>
     <pubDate>Thu, 09 Nov 2000 19:14:28 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1073805 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/i-need-help-again-how-can-i-get-some-general-userinformation#comment-1073803</link>
    <description> &lt;p&gt;I would have done it this way:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;UserAgent = Request.ServerVariables(&amp;quot;HTTP_USER_AGENT&amp;quot;)&lt;br /&gt;&lt;br /&gt;If InStr(1,UserAgent, &amp;quot;Windows&amp;quot;) &amp;lt;&amp;gt; 0 Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#039;do something&lt;br /&gt;ElseIf InStr(1,UserAgent, &amp;quot;anotherOS&amp;quot;) &amp;lt;&amp;gt; 0 Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#039;do something else&lt;br /&gt;Else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#039;do some generic thing&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;If InStr(1,UserAgent, &amp;quot;MSIE 5&amp;quot;) &amp;lt;&amp;gt; 0 Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#039;NOTE this will catch &amp;quot;MSIE 5.0&amp;quot; and &amp;quot;MSIE 5.5&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#039;do something&lt;br /&gt;ElseIf InStr(1,UserAgent, &amp;quot;Netscape&amp;quot;) &amp;lt;&amp;gt; 0 Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#039;I don&amp;#039;t use NN so I&amp;#039;m guessing that it returns &amp;#039;Netscape&amp;#039; something&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#039;do something else&lt;br /&gt;Else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;#039;do something generic&lt;br /&gt;End If&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;I don&#039;t have ASP support at home, so I&#039;ll have to play with it elsewhere.  Anyway, at least the User Agent should work.&lt;/p&gt;
 </description>
     <pubDate>Thu, 09 Nov 2000 18:54:14 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1073803 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/i-need-help-again-how-can-i-get-some-general-userinformation#comment-1073800</link>
    <description> &lt;p&gt;hotcut,&lt;/p&gt;
&lt;p&gt;The following code should work:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UserAgent &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;Request&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;ServerVariables&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;HTTP_USER_AGENT&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;UserAgentLength &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;Len&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;UserAgent&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;FindFirstSplit &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;CInt&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;InStr&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;UserAgent&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)) + &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FindSecondSplit &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;CInt&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;InStrRev&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;UserAgent&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)) + &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstLength &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;CInt&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;FindSecondSplit &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;- &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;FindFirstSplit&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) - &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SecondLength &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;CInt&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;UserAgentLength &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;- &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;FindSecondSplit&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;ExtractBrowser &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;Mid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;UserAgent&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;FindFirstSplit&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;FirstLength&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;ExtractOS &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;Mid&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;USerAgent&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;FindSecondSplit&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;SecondLength&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;Response&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;Write &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;The borwser is: &quot; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;amp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;ExtractBrowser &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;amp; &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&amp;lt;br&amp;gt;&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;Response&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;Write &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;The OS is: &quot; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;amp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;ExtractOS&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;
Peter J. Boettcher&lt;/p&gt;
 </description>
     <pubDate>Thu, 09 Nov 2000 17:21:00 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1073800 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I knew it!</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/i-need-help-again-how-can-i-get-some-general-userinformation#comment-1073796</link>
    <description> &lt;p&gt;Once again, it was you two guys, Mwx and Peter that helped me out my problem &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;/p&gt;
&lt;p&gt;I think that I can use the code you gave me, to set up a good statistics counter... Thanks for that...&lt;/p&gt;
&lt;p&gt;Just 1 little question:&lt;/p&gt;
&lt;p&gt;You said that the line:&lt;strong&gt;&lt;br /&gt;
Request.ServerVariables(&quot;HTTP_USER_AGENT&quot;)&lt;br /&gt;
&lt;/strong&gt;&lt;br /&gt;
should return the users browser, and OS, but how do I then split it up, so that it will give me each of that information, in seperate variables... That would make it easyer to manage in a database, if I could that...&lt;br /&gt;
That was probably just a silly question, but Iam sure that you can ansver the question A ZAP &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Many thanks&lt;br /&gt;
Casper&lt;/p&gt;
 </description>
     <pubDate>Thu, 09 Nov 2000 15:59:07 +0000</pubDate>
 <dc:creator>hotcut</dc:creator>
 <guid isPermaLink="false">comment 1073796 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/i-need-help-again-how-can-i-get-some-general-userinformation#comment-1073786</link>
    <description> &lt;p&gt;Max,&lt;/p&gt;
&lt;p&gt;Thanks for reminding me about HTTP_USER_AGENT, I use it all the time but I forgot that it also reports the user&#039;s OS (if it can). Regarding DATE_LOCAL, it doesn&#039;t seem to return any values for me (blank), I&#039;ve tried using it as a server variable and a local variable with no luck.&lt;/p&gt;
&lt;p&gt;Hotcut,&lt;/p&gt;
&lt;p&gt;This code:&lt;/p&gt;
&lt;p&gt;Request.ServerVariables(&quot;HTTP_USER_AGENT&quot;)&lt;/p&gt;
&lt;p&gt;will return the users browser and OS you will just have to parse it.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;
Peter J. Boettcher&lt;/p&gt;
 </description>
     <pubDate>Thu, 09 Nov 2000 13:53:04 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1073786 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/i-need-help-again-how-can-i-get-some-general-userinformation#comment-1073774</link>
    <description> &lt;p&gt;this really isn&#039;t such a bad solution.  I&#039;ve used it before at work, and the users can&#039;t even tell that it has happened.&lt;br /&gt;
Check the code... I&#039;m just making this up really quick.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;form name=&amp;quot;myVars&amp;quot; action=&amp;quot;your.asp&amp;quot; method=POST&amp;gt;&lt;br /&gt;&amp;amp;lt;script language=javascript&amp;amp;gt;&lt;br /&gt;&amp;lt;!--&lt;br /&gt;// print the vars you want&lt;br /&gt;document.write &amp;quot;&amp;lt;input type=hidden name=screen_width value=&amp;#039;&amp;quot;+screen.width+&amp;quot;&amp;#039;&amp;gt;&amp;quot;;&lt;br /&gt;document.write &amp;quot;&amp;lt;input type=hidden name=screen_height value=&amp;#039;&amp;quot;+screen.height+&amp;quot;&amp;#039;&amp;gt;&amp;quot;;&lt;br /&gt;document.write &amp;quot;&amp;lt;input type=hidden name=screen_color value=&amp;#039;&amp;quot;+screen.colorDepth+&amp;quot;&amp;#039;&amp;gt;&amp;quot;;&lt;br /&gt;//so on and so forth&lt;br /&gt;&lt;br /&gt;// now submit them!&lt;br /&gt;myVars.submit();&lt;br /&gt;--&amp;gt;&lt;br /&gt;&amp;amp;lt;/script&amp;amp;gt;&lt;br /&gt;&amp;lt;/for&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;I never new about colorDepth.  Live And Learn!&lt;/p&gt;
&lt;p&gt;Quick &#039;Qs&#039;...&lt;br /&gt;
I&#039;m reading (from an ASP book) that &#039;DATE_LOCAL&#039; will return the &#039;local time zone&#039;.  IS that on the server or client?&lt;/p&gt;
&lt;p&gt;Apache has a var &#039;HTTP_USER_AGENT&#039;, and a request var &#039;User-Agent&#039;, both return this for me: &#039;Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)&#039;. If you can get something like this with IIS, you could use &lt;strong&gt;inStr(1,browserVar, &quot;Windows&quot;)&lt;/strong&gt; to get a true/false.&lt;/p&gt;
&lt;p&gt;Anyway, good luck!&lt;/p&gt;
 </description>
     <pubDate>Thu, 09 Nov 2000 07:56:12 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1073774 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
