Agree with ludofulop. Best is to use your email address in a seperated JS file, in a function. It will not appear in your page (not visible on the screen and in the source)
Main Topics
Browse All TopicsI have a contact form on my web site. I would like to hide my email address. The form submits a request to my hosts server which inturn send me an email. I have read numerous post but cannot get it to work. I have no java experience.
The FORM method
<form method= "post" action="http://www.somedom
My exposed email
<input type="hidden" name="my_email" value="contact@mydomain.co
How do I hide my email?
FYI. I put that form on line last night. I had converted my email to a charater string, co... By this moring I was getting spam mail.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
if not do
<form method= "post" action="http://www.somedom
onsubmit="
<input type="hidden" name="my_email" value="">
and return an error from formemail
But it is safer to hardcode on server
So did you log on and use
http://www.startlogic.c
?
mplungjan
I am sorry but I am missing something. I place the onsubmit line by copying it from here into my code. I changed the email to my address. When I started the page the whole onsubmit line was visible at the top of my page.
So I enclosed the onsubmit line like this:
<form method= "post" action="http://www.startlo
<script type="text/javascript">
onsubmit="this.my_email.va
</script>
<input type="hidden" name="my_email" value="">
'
When I placed this code on the server, I recieved an error from the server. The error describes that the server's script was called incorrectly.
The code looks fairly simple so I don't think it is not correct. Rather I suspect I have not implemented it correctly on my page.
Where do I place this script in my web page? What other tags or lines do I need to include. I do not have any java on my page.
thanks.
Also, for my benefit, can bots read the java script? When I look at source my email is pretty easy to read.
Business Accounts
Answer for Membership
by: ludofulopPosted on 2009-10-26 at 06:37:06ID: 25662071
why are you putting your email to hidden input? why you just not hardcode it to e-mail sending script ?