here is the exact url for the script
http://www.free-php.net/detail/link-12.html
its from the links section of php site sorry
Edit:
i keep tryin to fix it but each time i get this
Parse error: syntax error, unexpected T_STRING, expecting ']' in /home/xdefiant/public_html/contact/contact.php on line 25
Edit:
well fixed one error now got a bunch more
Warning: include(/contact.php/home/xdefiant/public_html/contact/contact/inc/header.php) [function.include]: failed to open stream: No such file or directory in /home/xdefiant/public_html/contact/contact.php on line 43
Warning: include() [function.include]: Failed opening '/contact.php/home/xdefiant/public_html/contact/contact/inc/header.php' for inclusion (include_path='.:/x10hosting/php1/pear') in /home/xdefiant/public_html/contact/contact.php on line 43
Warning: include(/contact.php/home/xdefiant/public_html/contact/contact/inc/contactform.php) [function.include]: failed to open stream: No such file or directory in /home/xdefiant/public_html/contact/contact.php on line 44
Warning: include() [function.include]: Failed opening '/contact.php/home/xdefiant/public_html/contact/contact/inc/contactform.php' for inclusion (include_path='.:/x10hosting/php1/pear') in /home/xdefiant/public_html/contact/contact.php on line 44
Warning: include(/contact.php/home/xdefiant/public_html/contact/contact/inc/footer.php) [function.include]: failed to open stream: No such file or directory in /home/xdefiant/public_html/contact/contact.php on line 45
Warning: include() [function.include]: Failed opening '/contact.php/home/xdefiant/public_html/contact/contact/inc/footer.php' for inclusion (include_path='.:/x10hosting/php1/pear') in /home/xdefiant/public_html/contact/contact.php on line 45
Edit:
PHP:
<?
include('inc/config.inc');
if ($_SERVER['REQUEST_METHOD'] == "POST") {
$name = $_POST[name];
$email = $_POST[email];
$company = $_POST[company];
$phone = $_POST[Unavailable];
$website = $_POST[website];
$msg = $_POST[msg];
$subject = $_POST[subject];
// $msg2 is set in config.inc which formats the body of the message
mail("$adminemail[$who]", "$subjectheader $subject", "$msg2", "From: $email \nReply-To: $email");
if ($redirecturl != "") {
header("Location: $redirecturl");
} else {
echo "<br><center>$finishedtext</center><br>";
}
} else {
include($script_dir . '/inc/header.php');
include($script_dir . '/inc/contactform.php');
include($script_dir . '/inc/footer.php');
}
?>