Jump to content

Error in script


toshka

Recommended Posts

Hello everyone! :D

 

Stuck with a script... again. This script is linked to a flash contact form which can be viewed at www.thegladman.com

 

<?php

$name = $_REQUEST["name"];
$subject = $_REQUEST["subject"];
$message = $_REQUEST["message"];
$sender = $_REQUEST["sender"];

$full_message = $_SERVER['REMOTE_ADDR'] . "\n\n" . $message;
$message= $full_message;

$name = stripslashes($name); 
$message = stripslashes($message); 
$subject = stripslashes($subject); 
$sender = stripslashes($sender); 

$subject = "The Gladman Contact - ". $subject;

if(isset($name) and isset($message) and isset($subject) and isset($sender)){

mail("[email protected]", $name, $subject, $message, "From: $sender");

}
?>

 

Can anyone see any errors in my script? For some reason the email won't go through.

 

Peace,

Ant..

Link to comment
https://forums.phpfreaks.com/topic/48241-error-in-script/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.