Show sourcecode
The following files exists in this folder. Click to view.
index.html
ovn_str1.php
ovn_str2.php
ovn_str3.php
ovn_str4.php
ovn_str5.php
ovn_str6.php
svar.php
svar2.php
svar3.php
svar4.php
svar5.php
svar4.php
29 lines UTF-8 Windows (CRLF)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<?php
$namn = mb_convert_case($_POST["name"], MB_CASE_TITLE, "UTF-8");
$efternamn = mb_convert_case($_POST["surname"], MB_CASE_TITLE, "UTF-8");
$email = $_POST["email"];
if (mb_strlen($email) < 6 ||
mb_strpos($email, "@") > mb_strlen($email) - 4 ||
mb_strpos($email, ".") < mb_strpos($email, "@") ||
mb_strpos($email, ".") > mb_strlen($email) - 2
){
echo "Du kan inte använda det epostadressen <br>";
}
else{
echo "Du kan använda det epostadressen <br>";
}
echo "Namn: ".$namn. "<br>";
echo "Efternamn: ".$efternamn. "<br>";
echo "Email: ". $email;
echo mb_strlen($email). mb_strpos($email, "@"). mb_strlen($email). mb_strpos($email, "."). mb_strpos($email, "@"). mb_strpos($email, "."). mb_strlen($email);
?>
</body>
</html>