Q&A

Q1:Is it possible to use information gathered from the browser to get the surfer's email address?
A1: Although being able to do so would seem nice—it would eliminate errors in fetching the email address—it's just not possible. The browser doesn't contain the user's email address. The return value from the remote_host function in the CGI module may not actually be the address where the user receives email. The remote_user function—if you're using secure Web transactions—is probably not the user's email address "name" portion. And remember, it's possible for a browser to lie about some of this information, and some plug-ins for Netscape and Internet Explorer do just that.

Also, consider that the user may be using a Web browser at a library, ...

Get Sams Teach Yourself Perl in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.