• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

ThE LongesT ThreaD EveR

craig said:
:eek2:
bo1.gif
:eek2:
image0798bf.jpg
 
Hmm... can anyone tell whats wrong with my feedback script?? Here's the site
Code:
<?php

////////////////////////// Feedback Form Lite ///////////////////
// Gilly's Portfolio - http://www.gilly.org.uk
//
// This script is free to use as long as you retain the credit link  
// To remove the credit link please upgrade to Feedback Form Reloaded
// by visiting - http://www.gilly.org.uk
// 
// For support visit http://www.gilly.org.uk/contact.php
//
// You must edit the $feedback_email to your email
// 
// You can edit the others but it is not necessary
////////////////////////////////////////////////////////////////
 
 
////////////////////////////////////////////////////////////////
//////////////////// Edit the options below ////////////////////
////////////////////////////////////////////////////////////////

// You must edit the line below
$feedback_email = "mgg888@gmail.com";
// Change for email subject
$subject = "GeioStudio Feedback";
// Response to incomplete fields
$empty_fields = 'Please complete all the fields in the form.<br><br><a href="javascript:history.go(-1)">[Go Back]</a>';
// Message sent notification
$thankyou = "Your message has been sent.";

////////////////////////////////////////////////////////////////
///////////// Do not need to edit below this point /////////////
////////////////////////////////////////////////////////////////

$name = stripslashes($_POST['Name']);
$email = stripslashes($_POST['Email']);
$message = stripslashes($_POST['Message']);

if (!isset($_POST['Name'])) {

?>

<p><h1>Feedback - <a href="http://www.geiostudio.be">back</a></h1>

    <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">

    <p>Name:<br />
    <input name="Name" type="text" id="Name" size="40" />
    </p>

    <p>Email:<br />
    <input name="Email" type="text" id="Email" size="40" />
    </p>

    <p>Message:<br />
      <textarea name="Message" cols="31" rows="4" id="Message"></textarea>
  </p>

    <p>
    <input type="submit" value="Send" />
    <input name="Reset" type="reset" value="Reset" />
    </p>

</form>
<br><br>


<?php

}

elseif (empty($name) || empty($email) || empty($message)) {

    echo $empty_fields;

}

else {

    $ref = $_SERVER['HTTP_REFERER'];
    $url = "http://".$_SERVER['HTTP_HOST'].$_SERVER["REQUEST_URI"];
    if ($ref != $url) {
        echo "Access Denied from external pages!";
        exit;
    }
    mail($feedback_email, $subject, $message, "From: $name <$email>");
    echo $thankyou;
    
}

?>
 
Back
Top