Sunda Cyber Army


* Sunda Cyber Army 2k17 *
Indonesia Defacer ~


Path : /home/dent/public_html/sessions/
File Upload :
Current File : /home/dent/public_html/sessions/emailform.txt

<?php

// first we need to determine whether or not the page is loading for the first time
// or if a form was "submitted" to the page

if(!empty($_REQUEST["userfeedback"]))
{
    // there is a form field named "userfeedback" with valid data  in it
    $to = "webmaster@usc.edu"; // CHANGE THIS to your email
        // this would be the permanent address  you want all feedback to go to.
    $subject = $_REQUEST["usersubject"] ; // from the form
    $message = $_REQUEST["userfeedback"]; // from the form
    $from = $_REQUEST["useremail"]; // from the form
    $headers = "From: $from"; // create a header entry for "FROM" field of email
    $headers = "From:$from"; // create a header entry for "FROM" field of email
    $headers = "FROM:" . $_REQUEST["username"] . "<" . $_REQUEST["useremail"] . ">";
        // More complicated "FROM" field that has name <email> syntax
    $test = mail($to,$subject,$message,$headers);
    if ($test == 1) {
        echo "Thank  You. Your email was sent.";
        echo "<br><br><em>(Server response: " . $test . ")</em> ";
    } else {
        echo "ERROR. |" , $test . "| Your email was not sent.";
        // probably should send email to webmaster that there was a problem.
    }
    exit();
}
?>

Please fill out the form below to send an  email to our webmaster.
<hr />
<form action=""  method="get">
    Name: <input  type="text" name="username" />
    <br />
    Email: <input  type="text" name="useremail" />
    <br />
    Subject: <input  type="text" name="usersubject" />
    <br />
    Feedback: <textarea  name="userfeedback"></textarea>
    <br />
    <input type="submit"  value="Send Email" />
</form>