CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Client browser detect & insert into db ... how ?

Print topic Send  topic

Author Message
Robert
Posted: 02/15/2002, 7:12 PM

I'm creating a support application and would like to be able to capture details about the client, such as the OS, browser version, screen resolution, etc and insert that info into a table at the time of a trouble-report insert.

Any thoughts how to do this with CC ?

Thank you in advance !
AudiTT @ MCI
Posted: 02/15/2002, 7:52 PM

Ok, I hope this helps.

First, you can build your data base with a few of the following fields.

Go to http://www.sanjoseweb.com/sjsvc/sv.asp for a list of server variables.

I am assumeing you are using ASP...

Now, in your form, let say you have a field called IPAddress.

In a before show event for the form add the following.

fldIPAddress = Request.ServerVariables(REMOTE_ADDR)

This will fill in the field during the load. Your field must be hidden and or a text box. If you make it a label, CC or ASP won't insert the data.

HTTP_USER_AGENT will display client browser..

If you want it to be automatic, I use a simple login to grap all the data, or you can get sneaky and add a custom insert to a Before Open command. I havent done this, but have seen some sites that have it figured out.

Cheers.. Bryan

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.