View Full Version : hide email - encrypted vs javascript
sos13
11-17-2006, 08:35 AM
:confused: I just learned how to hide the email address in my webpages but am a little confused.
Is it better to encrypt the address or use the javascript?
Is the javascript dominate of all email addresses I might want to use?
for example see www.upavs.org
I have to use my webmaster email for contacts and also use other members emails for contacts as well.
I am self taught and learning by the seat of my pants ;) Thanks for your help
Vicki
bobdog
11-17-2006, 06:10 PM
The javascript will work.
But, you really need to get away from Microsoft Office generation web pages.
felgall
11-19-2006, 01:38 PM
The best way to protect your email address is to not put it on the web page at all but instead use a contact form and add the email address after the form is submitted.
sos13
11-19-2006, 02:01 PM
I guess that could be an iteresting way to handle but I'm not too sure of the javascript.
got a suggestion?
I tried to view your site to see how you handled but I can't read the font color :yellow
byrt_001
11-23-2006, 06:48 AM
hi everyone
i just register today as Im looking for something like this. I recently got my photoblog goin but i was trying to get a contact form but it is not working. I tryed out php for the first time, but there is something missing? Would it be possible for someone to give me hand in completing the work?
thanks, much appreciated
this is the link http://6701.sunpixs.com/index.php?x=about
aceofspades
11-23-2006, 02:11 PM
its kind of simple you dont have the contact.php on the sever...
byrt_001
11-23-2006, 04:31 PM
uuhmm, thanks, will have a look.
Lonectzn
11-23-2006, 05:53 PM
A nice way of doing it sometimes is to make the email address an image, and link like you have. Visitors can still see and click the address but crawlers will fail.
byrt_001
11-24-2006, 05:34 AM
hi
thanks for all the help, sorry to take over the post, but im still having some small problems. Would anyone be so kind to have a look at this code please. this is the contact.php that goes in the server.
<?php
$message = $_POST['sender_name']. " from ".$_POST['sender_city']."
(".$_POST['sender_email'].") sent you a message:\n".$_POST['message'];
mail("my_email@mydomain.com","messege from 6701",$message);
?>
i think there is something wrong/missing somewhere, as it just doesn not send and just loads the contact.php page.
thanks, much appreciated.
hi
thanks for all the help, sorry to take over the post, but im still having some small problems. Would anyone be so kind to have a look at this code please. this is the contact.php that goes in the server.
<?php
$message = $_POST['sender_name']. " from ".$_POST['sender_city']."
(".$_POST['sender_email'].") sent you a message:\n".$_POST['message'];
mail("my_email@mydomain.com","messege from 6701",$message);
?>
i think there is something wrong/missing somewhere, as it just doesn not send and just loads the contact.php page.
thanks, much appreciated.
Are you sure it doesn't send the email?
I would suggest trying $_REQUEST instead of $_POST.
Or you could compare, I suppose..
This is the output of a mail script creation I wrote some time ago for my site (TheScripters.com)
<?php
// To use the following script, you will have to make some
// modifications. Copy/paste into something like notepad.
// Then just make sure the variables match up with your HTML form.
// To use, just start a form:
// <form action="test.php" method="post">
// Ensure that the elements are set with the same names
// as the variables set here.
$sendto = "my_email@mydomain.com";
$sendfrom = $_REQUEST['user'];
$subject = $_REQUEST['subject'];
$message = $_REQUEST['message'];
mail("$sendto", stripslashes("$subject"), stripslashes("$message"), "From: $sendfrom");
?>
Though, if you intend on doing any redirecting, you would need the header() function there at the end.
terrakeramik
11-29-2006, 10:43 PM
See also this thread with ideas how to hide email on webpages (both images and light encryption).
http://www.bluehostforum.com/showthread.php?t=3340&highlight=email
Basil
11-30-2006, 01:14 AM
http://www.bluehostforum.com/showthread.php?t=2289
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.