Click to See Complete Forum and Search --> : Can I hide/scramble an email address in the code for a form?


Paul Solomon
10-23-2003, 03:39 PM
:confused: I'm wondering how I can scramble my email address within a form. I'm writing the code for the form, whose function is a mailto: . In the html code for my page, my email address shows up within the form elements as:

action="mailto:xyz@domain.com"

Is there any way that I can put a javascript within the action= spot? Is there any way that I can use a mailto: form without revealing the email address within the code?

I'd like to have a contact form on the page; any other thoughts on how to get around this problem?

A "work in progress" version of the page is viewable online now, if that is necessary to get a look at my code "in situ". The address of the page is www.hudsonhighland.com/newwebsite/contact.htm
The page also already has a scrambled [standard] email link, and a scrambler to display a "not hyperlinked" email address without it showing up in the back code.

All suggestions appreciated!

Charles
10-23-2003, 03:55 PM
It would be rather simple but then your lform would become inaccessible to persons who do not use JavaScript. You best bet is to submit the form to a server side script that sends you the info by email in turn.