View Full Version : Email Riddler in a form
noopara
11-16-2005, 06:20 PM
I need some help in getting Email Riddler script to work in a form. Could someone post a complete example of this. On a 1-10 scale of Java knowledge I'm about a 2.
Another thing I don't understand is why is that everytime I 'encrypt' the same address I get a different code??
Thanks in advance.
Greg
On a 1-10 scale of Java knowledge I'm about a 2. As illustrated by the fact that you just confused Java with JavaScript. :)
MUFFINS!
<script type="text/javascript">
document.write("<input type=\"whatever\" value=\"" + postemailXXXX + "\">");
</script>
... where XXXX is your four-digit number, which changes each time, in order (presumably) to confuse spambots.
noopara
11-16-2005, 07:57 PM
OK - Thanks.
Here's the url http://www.dynamicdrive.com/emailriddler/
What I am trying to figure out is how to use this in a form. I was able to get it to work fine with a mailto tag. The info on the page at the above url assumes a higher level understanding of Javascript. I could get it to work if I had a complete example of a typical input form that showed where the script goes and what the input tag should look like. For example in the line
'document.myform.destination.value=postemail3422' does 'myform' refer to the name of the form that I am using which comes form the NAME="myform' in the form tag?
Thanks in advance.
Greg
in the line
'document.myform.destination.value=postemail3422' does 'myform' refer to the name of the form that I am using which comes form the NAME="myform' in the form tag?Yes, it does.
noopara
11-16-2005, 08:17 PM
OK - Thanks again.
How about this? Using your hint of using a 'document.write' approach instead of a document.myform approach I tried the following without any luck.
Any suggestions? (Note - this was a known good working form before)
Thanks, Greg
<FORM ACTION="http://formmail.xxx.com/cgi-bin/formmail.cgi" method="POST">
<script type="text/javascript">
/***********************************************
* Encrypt Email script- Please keep notice intact.
* Tool URL: http://www.dynamicdrive.com/emailriddler/
* **********************************************/
var emailarray6065= new Array(102,99,45,105,110,102,111,64,102,108,97,109,105,110,99,97,105,109,97,110,46,111,114,103)
var postemail6065=''
for (i=0;i<emailarray6065.length;i++)
postemail6065+=String.fromCharCode(emailarray6065[i])
document.write('<input type="hidden" name="recipient" value="+postemail6065+">')
</script>
<INPUT TYPE="hidden" name="subject" VALUE="Email Address Change">
noopara
11-16-2005, 08:34 PM
GOT IT TO WORK WITH THIS!!
document.write("<input type=\"hidden\" name=\"recipient\" value=\"" + postemail6065 + "\">");
Thanks for the little assist!!!
Greg
Yes, I was about to mention that :)
You could also have done:
document.write('<input type="hidden" name="recipient" value="' + postemail6065 + '">');
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.