Forum Moderators: open

Message Too Old, No Replies

getting an email if a visitor clicks?

help me- im a new developer

         

geobals

4:59 am on Sep 1, 2005 (gmt 0)

10+ Year Member



I am new to Javascript. If a visitor Clicks submit button on my web page i need to get an email without knowing that visitor. that may or maynot be a blank email. but i need to get that email. i don't konw whether it is possible to develop that by using Javascript. help me to develop a code

adb64

6:41 am on Sep 1, 2005 (gmt 0)

10+ Year Member



I don't think it is possible to send an email using javascript without the visitor knowing it. He has to press the 'Send' button in his mail application.
But when a user presses the Submit button in the form it will start some sort of action on the server. And when that action is loading a PHP or Perl or whatever script page to handle the form you may also send the email from that script. Then the visitor won't know as it is being send by your server. This is also what I use to get an email when a visitor signs my guestbook.

Arjan

kaled

7:09 am on Sep 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If I understand your correctly, what you want to do could be used to secretly gather email addresses - surely you don't think that should be possible?

Kaled.

geobals

9:08 am on Sep 1, 2005 (gmt 0)

10+ Year Member



Thanks for your answers. I have done that by using PHP. and 1 think i want to clarify with you. im not collecting visitors mailing address. i want to konw whether they leave my page withour clicking submit button or not. so that i can modify my page or my process. Thanks once again

King_Kong

3:17 pm on Sep 1, 2005 (gmt 0)

10+ Year Member



you CANNOT send email via javascript. However you could use javascript to control where the user goes when they click submit or a button ie. via onSubmit or onClick.

geobals

4:44 am on Sep 2, 2005 (gmt 0)

10+ Year Member



Yes. Thanks to all