Jump to content

Email link via Database


barney0o0

Recommended Posts

Hi Folks..sorry 2nd post in 2 days!

 

Im trying to create a method to prevent spiders collecting emails addresses from text throughout a website.  The text is updated via a simple form based cms. All the contact names and email address are held within a database.

 

I was thinking about adding a link to a form which is populated by a specifc contact name and email address...would this prevent spam, or will it still follow along the sames lines?

 

So, for example, the admin would add a link to a name...contactform.php?ID=23, then the form would process the form to the person with the email address of id 23.

 

Does this sound like a good method, and is there someone who could hold my hand on this

 

Many thanks in advance

Link to comment
Share on other sites

so you get the ID from your url, save that ID in a hidden field in the form, then when you pass the form to the email processing script, you grab that ID from the hidden field, and search the database for the correct email.

 

Now you return the email, and send it to the person. You haven't posted anything on the page yet. when the email gets sent, redirect the user to a success page or something on those lines, and the email will have never been posted on the page, and has been kept private!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.