Only allow GET and POST HTTP request and die otherwise.
[Project_webapp.git] / formlogin.php
CommitLineData
6405835a
JB
1<?php
2$form_email = filter_input(INPUT_POST, "email", FILTER_VALIDATE_EMAIL);
65fc0194 3$form_password = filter_input(INPUT_POST, "password", FILTER_SANITIZE_STRING);
6405835a 4
65fc0194
JB
5if (!$form_email) {
6 echo "The email is not valid";
6405835a
JB
7} else {
8 $sql_pquery = "select count() from Client where EmailCI = ?";
9}
10
11?>