Home > Articles > Networking

  • Print
  • + Share This

Tip 5: Building a Common Start Page for Web and Wireless Users

You may find yourself wanting to build a site that supports both wired and wireless Web users. To do this, your home page will need to automatically detect the browser type accessing your site and generate the appropriate output (either HTML or WML) based on this detection. To do this, you need to analyze the HTTP_USER_AGENT variable, using your CGI/scripting tool of choice (Perl, PHP, ASP, and so on). An up-to-date list of WAP browser user agent strings is maintained at http://allnetdevices.com/faq/useragents.php3. A common method of checking these strings is to simply compare the first few characters of the user agent; if it matches one in the list, then it's a WAP browser.

  • + Share This
  • 🔖 Save To Your Account

Related Resources

There are currently no related titles. Please check back later.