joe69;10887483 wrote:ok me being really new and stupid..... how does a form keep it from being exposed to spambots? and do you mean just make up a regular form to display all the info or is there someother "form" you are talking about
Thanks
Joe
right now this stuff is all offline I havent put it on the server yet. I added the code you proposed and it worked flawlessly!!
You could simply use "Email this person" as a link to another php form that would pull the relevant data from the database allowing the user to enter their message, and when they click Send, the server sends the email via php's mail(). Many hosting providers stick a default mail form in each site directory that can be customized to your needs. Using a form, the users' email address aren't output in HTML, thus eliminating email address address harvesting.
There are, however, more bots that use forms to spam people. You can minimize that problem by utilizing Captcha image verification in the form. There is no 100% safe way (that I've ever heard of, anyhow) to allow email to be sent from a web site, but there are ways to lessen the possibility of abuse. Form field validation is always a good idea, too.