Results 1 to 2 of 2

Thread: server-side email link redirects

  1. #1
    Join Date
    Apr 2009
    Location
    Sydney, Australia
    Posts
    118
    Thanks
    16
    Thanked 1 Time in 1 Post

    Default server-side email link redirects

    Shame on me for not knowing this already but how do i redirect

    Code:
    <a href="mailto:email@address.com">email</a>
    so that the email is processed in PHP and redirected to the relevant application.

    I would like to enhance security and keep spammers away. I don't need a PHP form. I just need the link to execute a PHP function like mail()

  2. #2
    Join Date
    Apr 2008
    Location
    Limoges, France
    Posts
    395
    Thanks
    13
    Thanked 61 Times in 61 Posts

    Default

    Normally hyperlinks with email addresses in the href attribute will cause an email application to launch on the user's computer filling in the To: field with the email address from the link.

    If you want to leave the html link as is but make it behave differently, you'll need to use javascript.

    If you want PHP to email you, you'll need to create a contact form that POSTS the contents of the form to a php script that in turns sends the email.

    If you want more info or perhaps I'm not understanding exactly what you want to acheive, let me know.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •