Say a user attempts to view a page and the browser is detected to have not passed. I would like to be able to list (for ( keys %passed )) the passed browsers along with formal browser names, versions, and URL info.
I am seeing something like this forming:
my %passed = { # MSIE 5.0 on MS NT 4.0 1 = ( HTTP_USER_AGENT => "Mozil +la/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)", NAME => "MS Internet + Explorer" VERSION => "5.0" PLATFORM => "NT" MANUFACTURER => "Microsoft" URL => "http://w +ww.microsoft.com"
Does this seem like the correct way to go with this idea? How would I structure the line to display the info like:
Here is a list of browsers that have passed testing: + MS Internet Explorer 5.0 / NT (http://www.microsoft.com) ...
being that the info is a hash in a hash in a hash?
======================
Sean Shrum
http://www.shrum.net
In reply to Re: Re: Need help protecting the user - detecting and redirecting browsers the ADVANCED way...
by S_Shrum
in thread Need help protecting the user - detecting and redirecting browsers the ADVANCED way...
by S_Shrum
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |