HighDots Forums  

Re: Need some simple code

JavaScript discussion (multi-lingual) JavaScript discussion (alt.comp.lang.javascript)


Discuss Re: Need some simple code in the JavaScript discussion (multi-lingual) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Roderik
 
Posts: n/a

Default Re: Need some simple code - 07-18-2004 , 09:50 PM






JohnK wrote:

Quote:
Hi all,

This is my first time visiting this group. I don't know if it is the right
one, otherwise please tell me in which group I have to put me question.

Well the question is as follows:
I need a simple mailform. I know how to mak that, but I don't want to use
the most easy solution in html with mailto:. Everyone knows that gives you
more spam than you would like...
The form contains some text, three fields to be filled in: 1. name 2)
e-mail address (for replies etc) and 3) a text-area for comment and
questions
Furthermore a Transmit or Submit button. A Reset or Erase button is welcome,
but not neccessary.

I had a form using CGI-bin from my provider, but it fails somehow, so I
decided to use something different. I tried PHP, but my provider does not
support that. The only thing I can use is Html and Java.
I tried something with Java, but what I have now is not what I want, it
starts user's e-mail program and than fills in the 'to', 'from', 'subject'
and textbody. User still has to click the sent button.

I searched a lot on the web, maybe not on the right places, but all I found
are examples with far more functionality then needed.

Could any of you help me?

Thanks in advance
John



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.699 / Virus Database: 456 - Release Date: 4-6-2004


When the mailform is submitted it should be handled by some kind of
script. Since client side scripting does not have such capabilities for
security reasons you can only solve this by taking some actions on the
server using a server side script. Since your provider doesn't support
php and cgi and probably no java server pages as well you can't handle
the form at the server of your provider. However there are sometimes
third party scripts that can handle your form on their server and send
results to your email, but this is quite often a paid service.

--
http://www.archytas.nl/
webdesign, internet applicaties, internetgestuurde elektronica


Reply With Quote
  #2  
Old   
David Robinson
 
Posts: n/a

Default Re: Need some simple code - 08-09-2004 , 02:32 AM






Hi John

You say you don't like using mailto because it brings lots of spam. Try
embedding the following in your html where you would normally place the <a .
..> tag:
<script language="JavaScript" >
<!--
// Following inserts an email address in such a way that web-crawling
software
// will have difficulty in picking it up and passing it to spam mailing
lists.
//
a="<a href='mailto:myname" ;
b="@"
c="myemailserver.com' >Email me</a>" ;
d=a+b+c ;
document.write(d);
//
// -->
</script>

I have tried this and the various email address harvesting crawlers don't
find it. As an experiment, I used this technique and also put a false email
address in clear text next to it, in a new website I was constructing.

I started receiving spam to the false address within days, but nothing to
the address I had "hidden". Needless to say I deleted the spam at once - it
contained a raft of viruses and nasties!

Of course my approach will not protect you from people who pick up your
email address visually from their screen.

Comment on this technique would be welcome from anyone.

David Robinson

"Roderik" <mail (AT) roderik (DOT) net> wrote

Quote:
JohnK wrote:

Hi all,

This is my first time visiting this group. I don't know if it is the
right
one, otherwise please tell me in which group I have to put me question.

Well the question is as follows:
I need a simple mailform. I know how to mak that, but I don't want to
use
the most easy solution in html with mailto:. Everyone knows that gives
you
more spam than you would like...
The form contains some text, three fields to be filled in: 1. name 2)
e-mail address (for replies etc) and 3) a text-area for comment and
questions
Furthermore a Transmit or Submit button. A Reset or Erase button is
welcome,
but not neccessary.

I had a form using CGI-bin from my provider, but it fails somehow, so I
decided to use something different. I tried PHP, but my provider does
not
support that. The only thing I can use is Html and Java.
I tried something with Java, but what I have now is not what I want, it
starts user's e-mail program and than fills in the 'to', 'from',
'subject'
and textbody. User still has to click the sent button.

I searched a lot on the web, maybe not on the right places, but all I
found
are examples with far more functionality then needed.

Could any of you help me?

Thanks in advance
John



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.699 / Virus Database: 456 - Release Date: 4-6-2004


When the mailform is submitted it should be handled by some kind of
script. Since client side scripting does not have such capabilities for
security reasons you can only solve this by taking some actions on the
server using a server side script. Since your provider doesn't support
php and cgi and probably no java server pages as well you can't handle
the form at the server of your provider. However there are sometimes
third party scripts that can handle your form on their server and send
results to your email, but this is quite often a paid service.

--
http://www.archytas.nl/
webdesign, internet applicaties, internetgestuurde elektronica



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.