I need help with my php script. What I am trying to do it create a php script that will send me an e-mail to me about a dead link, basically a dead link system. I want it so they click on the link for reporting the dead link and they will get a page saying basically thank you.
Now heres some helpfull stuff. The php script I am using has tags for the title of the site and url. I have little knowledge of php so any help would be nice.
Here is the php code so far:
Now heres some helpfull stuff. The php script I am using has tags for the title of the site and url. I have little knowledge of php so any help would be nice.
Here is the php code so far:
Code:
<?php
$email = "webmaster@exogama.com";
/*
The continue is there so they can go back to the home page
*/
$continue = "/";
// Send email
$name = stripslashes($name);
$comments = stripslashes($comments);
$subject = "Dead Link";
$message = "Dead Link: <%LINK_TITLE%> <%LINK_URL%>";
$headers = "From: " . $formemail . "\n" . "Return-Path: " .
mail($email,$subject,$message,$headers);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Dead Link Report</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-uk">
</head>
<body>
<center>
<h1>Thank you</h1>
The dead link will be deleted as soon as possible.
<h3><a href="<?php print "$continue"; ?>">Click here to continue</a></h3>
</center></object>
</font>
</body>
</html>