bazz
01-08-2009, 05:25 PM
Hi,
I am already brain fogged on 2009 :(
I am trying to get useragent data with JS, to get which browser people are using. I then need to send those details to a MySQL table using Perl.
The added complication is that I need this to be done as the first page loads so I can't do it by sending vars in the query string, (can I).
the full webpage is made by mainpage.pl like this:
1. require header.pl ~ outputs the head section of the page including the JS for userAgent
2. require logo.pl ~ outputs the logo section of the page.
run rest of mainpage.pl
How should I send the UserAgent vars got in header.pl to one of the other perl scripts (where it can input it to the Db)?
Maybe I should be ding it some other way?
any pointers would be very helpful.
bazz
I am already brain fogged on 2009 :(
I am trying to get useragent data with JS, to get which browser people are using. I then need to send those details to a MySQL table using Perl.
The added complication is that I need this to be done as the first page loads so I can't do it by sending vars in the query string, (can I).
the full webpage is made by mainpage.pl like this:
1. require header.pl ~ outputs the head section of the page including the JS for userAgent
2. require logo.pl ~ outputs the logo section of the page.
run rest of mainpage.pl
How should I send the UserAgent vars got in header.pl to one of the other perl scripts (where it can input it to the Db)?
Maybe I should be ding it some other way?
any pointers would be very helpful.
bazz