Solved

Need CGI That Gives Name & Email Address of Web Visitors

Posted on 1998-09-03
7
204 Views
Last Modified: 2013-12-25
Is there a CGI script out there that you can run on your web site that will give you the visitor's name, email address, etc? I saw a web site called SiteGuest.com that supposedly does this.

Thanks.
0
Comment
Question by:TP090398
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 11

Expert Comment

by:mouatts
ID: 1828514
A CGI can only obtain the data present within the Environment variables, or within the fields of a form.

As neither the email address or name is present within the standard environment variables you can only obtain them by the user completing and submitting a form.

However what you can do is provide a link that does a mailto to your own account. The message will have the senders mail address wiithin it. However the user will be prompted before the mail message is issued so that they can prevent you from 'stealing' there email address.

Steve
0
 

Author Comment

by:TP090398
ID: 1828515
There was a program called WWWatch that was out there and claimed to do this. Also, the site I mentioned (SiteGuest) has been marketing this services and a few business associates on the Internet (who I know to have excellent reputations) are also trumpeting success with this service. It claims to be transparent. Again, if anyone knows about a CGI or Java script that gives you the name, email address, etc. of web site visitors, please help me out.

Thanks.
0
 
LVL 4

Expert Comment

by:rafistern
ID: 1828516
As far as I know, mouatts is right. You cannot get someone's email address without him filling it in on a form or sending a form using action="mailto:" in which case his browser opens his mail program and sends an email (with the address in the header). BTW, I very much _hope_ that there is no other way, because it would be heaven for email harvesters.
0
Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

 
LVL 4

Expert Comment

by:rafistern
ID: 1828517
I just looked at the siteguest site. It states that the user will be notified by his browser that he is giving over his address so it is probably done the way I said.
0
 
LVL 4

Expert Comment

by:rafistern
ID: 1828518
The following HTML/JavaScript will do the trick. Use your email address for the mailto. Insert the onload command in the <body> tag of the page. The dummy hidden field appears to be important for this trick to work, otherwise IE will open your mailing program instead of sending the form.

<body onload="document.forms[0].submit();">
<form enctype="text/plain" action="mailto:your@email.com" method=post>
<input type="hidden" name="dummy" value="">
</form>
</body>

You will receive an email from every visitor to your site with their name and email address in the header. Also IP information if you want it.

As it said in the siteguest site, the user will receive a popup notice that he is disclosing his email address.
0
 

Author Comment

by:TP090398
ID: 1828519
Thank for the responses, but I tried that code and it didn't seem to work. Was there something else I must set up? Was there something I missed? I need more help.

Thanks.
0
 
LVL 4

Accepted Solution

by:
rafistern earned 200 total points
ID: 1828520
What happened that didn't work? What did happen? Did you copy exactly what I posted? Please give a little more information.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question