Results 1 to 9 of 9

Thread: Report Dead Link Script

  1. #1
    Registered Member incka's Avatar
    Join Date
    Aug 2003
    Location
    Wakefield, UK, EU
    Posts
    3,801

    Report Dead Link Script

    I'm trying to get a report dead link script that when people click report, it sends me an email telling me which ID the thing came from.

    Does anyone have any idea how to do this?

    This is what I tried:

    PHP Code:
    <?php
    $to 
    "sean@incka.com.com";
    $subject "DEAD LINK";
    $body "ID . echo $row['id']; . /n NAME . echo $row['name']; .";
    if (
    mail($to$subject$body))
    {
       echo(
    "<p>Message sent!</p>");
    }
    else
    {
       echo(
    "<p>Message delivery failed...</p>");
    }
    ?>
    But it didn't work...

  2. #2
    Future AstonMartin driver r2d2's Avatar
    Join Date
    Dec 2003
    Location
    UK
    Posts
    1,608
    What happened?

    You '.com.com' in your $to variable...

  3. #3
    Registered The New Guy's Avatar
    Join Date
    May 2004
    Posts
    283
    Why use mail anyway? Just shove it in a database table.

  4. #4
    Registered Member incka's Avatar
    Join Date
    Aug 2003
    Location
    Wakefield, UK, EU
    Posts
    3,801
    Because I have no idea how to shove it in a database table :P

    Thanks r2d2, I'll see if that works.

  5. #5
    Senior Member chromate's Avatar
    Join Date
    Aug 2003
    Location
    UK
    Posts
    2,348
    Did it work? If not, the $body bit might be the problem. Try:

    PHP Code:
    $body "ID: ".$row['id']."/n NAME: ".$row['name']; 

  6. #6
    Future AstonMartin driver r2d2's Avatar
    Join Date
    Dec 2003
    Location
    UK
    Posts
    1,608
    Ah yes How did I miss that! That wouldnt cause an error though would it? It would just put 'echo', ';' and '.'s in the email? Unless that was how it 'didn't work'...

  7. #7
    Registered Member incka's Avatar
    Join Date
    Aug 2003
    Location
    Wakefield, UK, EU
    Posts
    3,801
    OK, I'll try that, thanks

  8. #8
    Registered Member incka's Avatar
    Join Date
    Aug 2003
    Location
    Wakefield, UK, EU
    Posts
    3,801
    Works perfect. Thanks guys.

  9. #9
    Senior Member chromate's Avatar
    Join Date
    Aug 2003
    Location
    UK
    Posts
    2,348
    Quote Originally Posted by r2d2
    Ah yes How did I miss that! That wouldnt cause an error though would it? It would just put 'echo', ';' and '.'s in the email? Unless that was how it 'didn't work'...
    I would have thought the same thing. No special characters that need escaping. But it just looked wrong, which is why I mentioned it

Similar Threads

  1. Back link request = SPAM?
    By ASP-Hosting.ca in forum Search Engine Optimization
    Replies: 20
    Last Post: 12-11-2006, 11:48 AM
  2. Promoting a brand new site and link exchanges
    By ASP-Hosting.ca in forum General Promotion
    Replies: 8
    Last Post: 11-19-2004, 01:49 PM
  3. link directory script?
    By jonbraswell in forum Community Management
    Replies: 11
    Last Post: 08-09-2004, 11:48 PM
  4. Multiple links and link text
    By r2d2 in forum Search Engine Optimization
    Replies: 2
    Last Post: 02-17-2004, 07:40 PM
  5. Link exchange
    By lemon in forum Search Engine Optimization
    Replies: 3
    Last Post: 08-16-2003, 07:42 AM

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
  •