How to make "Report This Problem" script ?

Discussion in 'Programming' started by vishu123, Nov 5, 2009.

  1. #1
    I am using a blog. I want to make a small script "Report this problem". Becuase whenever the visitors comes from google or from anywhere if they find 404 page than they have a option to report this page.

    When user click a link report this page after few second this dialog box opens and say "Thank you for reporting".

    I hope you understand what i mean. Sorry for bad english :(
     
    vishu123, Nov 5, 2009 IP
  2. SomeRandomDude

    SomeRandomDude Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    well, if your host allows you to use a web form mailer, you could write a small php script that you can place on your 404 page that would automatically email you when a 404 is loaded.

    you could have it send you the URL in the body of the email, then after sending auto-redirect the user to your home page

    I'm not the best at website programming theory, but I would also have the page create an entry to a mysql table, so that it could also check to see if you've already been emailed about a specific page or not, just to avoid getting a thousand emails about 1 page (if you happen to have that kind of traffic)
     
    SomeRandomDude, Nov 6, 2009 IP