Github not letting me to use my php script to send email form, what to do
<p>I've been googling and but none of the answers meet my need...
I read that Github wouldnt let me use POST method so i changed it to GET method but it doesnt fix the problem, then i read about github not letting people to use php form due to the danger of spams. Is there any other way that i can let people write stuff to me from my website hosted on GitHub?</p>

<p>So I made a php file to let people send me email from my website <a href="http://simonykhsu.com" rel="nofollow">http://simonykhsu.com</a></p>

<p>this is my PHP code:
    

<pre><code>    if(isset($_POST['email'])) {



    // EDIT THE 2 LINES BELOW AS REQUIRED

    $email_to = "simonizerlol@gmail.com";

    $email_subject = "From simonykhsu.com";





    function died($error) {

        // your error code can go here

        echo "I am very sorry, but there were error(s) found with the form you submitted. ";

        echo "These errors appear below.&lt;br /&gt;&lt;br /&gt;";

        echo $error."&lt;br /&gt;&lt;br /&gt;";

        echo "Please go back and fix these errors.&lt;br /&gt;&lt;br /&gt;";

        die();

    }



    // validation expected data exists

        if(!isset($_POST['first_name']) ||

        !isset($_POST['last_name']) ||

        !isset($_POST['email']) ||

        !isset($_POST['telephone']) ||

        !isset($_POST['message'])) {

        died('I am sorry, but there appears to be a problem with the form you submitted.');       

    }



    $first_name = $_POST['first_name']; // required

    $last_name = $_POST['last_name']; // required

    $email_from = $_POST['email']; // required

    $telephone = $_POST['telephone']; // not required

    $comments = $_POST['message']; // required



    $error_message = "";

    $email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/';

      if(!preg_match($email_exp,$email_from)) {

    $error_message .= 'The Email Address you entered does not appear to be valid.&lt;br /&gt;';

  }

    $string_exp = "/^[A-Za-z .'-]+$/";

      if(!preg_match($string_exp,$first_name)) {

    $error_message .= 'The First Name you entered does not appear to be valid.&lt;br /&gt;';

  }

      if(!preg_match($string_exp,$last_name)) {

    $error_message .= 'The Last Name you entered does not appear to be valid.&lt;br /&gt;';

  }

      if(strlen($comments) &lt; 2) {

    $error_message .= 'The message you entered do not appear to be valid.&lt;br /&gt;';

  }

      if(strlen($error_message) &gt; 0) {

    died($error_message);

  }

    $email_message = "Form details below.\n\n";



    function clean_string($string) {

      $bad = array("content-type","bcc:","to:","cc:","href");

      return str_replace($bad,"",$string);

    }



    $email_message .= "First Name: ".clean_string($first_name)."\n";

    $email_message .= "Last Name: ".clean_string($last_name)."\n";

    $email_message .= "Email: ".clean_string($email_from)."\n";

    $email_message .= "Telephone: ".clean_string($telephone)."\n";

    $email_message .= "Message: ".clean_string($comments)."\n";





// create email headers

$headers = 'From: '.$email_from."\r\n".

'Reply-To: '.$email_from."\r\n" .

'X-Mailer: PHP/' . phpversion();

@mail($email_to, $email_subject, $email_message, $headers);  

?&gt;



&lt;!-- include your own success html here --&gt;



Thank you for contacting me. I will be in touch with you very soon.



&lt;?php

}

?&gt;
</code></pre>

<p>this is my HTML code:</p>

<pre><code>&lt;form name = "emailme" action="messageme.php" method="GET" enctype="text/plain"&gt;
            &lt;div class="section landing-section"&gt;
                &lt;div class="container"&gt;
                    &lt;div class="row"&gt;
                        &lt;div class="col-md-8 col-md-offset-2"&gt;
                            &lt;a name="Contact"&gt;
                            &lt;h2 class="text-center"&gt;Keep in touch?&lt;/h2&gt;
                            &lt;form class="contact-form"&gt;
                                &lt;div class="row"&gt;
                                    &lt;div class="col-md-6"&gt;
                                        &lt;label&gt;First Name&lt;/label&gt;
                                        &lt;input class="form-control" name="first_name" maxlength="50" size="30" placeholder="First Name"&gt;
                                    &lt;/div&gt;
                                    &lt;div class="col-md-6"&gt;
                                        &lt;label&gt;Last Name&lt;/label&gt;
                                        &lt;input class="form-control" name="last_name" maxlength="50" size="30"placeholder="Last Name"&gt;
                                    &lt;/div&gt;
                                    &lt;div class="col-md-6"&gt;
                                        &lt;label&gt;Email&lt;/label&gt;
                                        &lt;input class="form-control" name="email" maxlength="80" size="30" placeholder="Email"&gt;
                                    &lt;/div&gt;
                                    &lt;div class="col-md-6"&gt;
                                        &lt;label&gt;Telephone&lt;/label&gt;
                                        &lt;input class="form-control" name="telephone" maxlength="30" size="30" placeholder="Telephone(not required)"&gt;
                                    &lt;/div&gt;

                                &lt;/div&gt;
                                &lt;label&gt;Message&lt;/label&gt;
                                &lt;textarea class="form-control" name="message" maxlength="1000" cols="25" rows="4" placeholder="Tell me your thoughts and feelings..."&gt;&lt;/textarea&gt;
                                &lt;div class="row"&gt;
                                    &lt;div class="col-md-4 col-md-offset-4"&gt;
                                        &lt;a href="messageme.php"&gt;&lt;button class="btn btn-danger btn-block btn-lg btn-fill"&gt; Send Message  &lt;/button&gt;&lt;/a&gt;

                                    &lt;/div&gt;
                                &lt;/div&gt;
                            &lt;/form&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;

                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/form&gt; 
</code></pre>