Created
August 17, 2018 13:07
-
-
Save appgurueu/2bbe95bcb3ee8648ec08f62e4be275ab to your computer and use it in GitHub Desktop.
Small PHP Example, WTFPL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<!-- Template for lua_api.html --> | |
<html lang="en"> | |
<body data-spy="scroll" data-target="#contenttable" data-offset="15" style="background: url('background.png') no-repeat center center fixed;background-size: 100% 100%;background-repeat: no-repeat;image-rendering:optimizeSpeed"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<meta name="description" content="Example"> | |
<meta name="author" content="Lars Müller"> | |
<div class="bg"></div> | |
<title>Example</title> | |
<!-- Scripts and stylesheets --> | |
<!-- Bootstrap core CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> | |
<h2>Example Form</h2> | |
<form id="login" method="post" action="";> | |
<label for="name">Name : </label> | |
<input type="form-control" name="name" id="name" placeholder="mustmax" required><br> | |
<label for="pword">Password : </label> | |
<input type="password" name="pword" id="pword" placeholder="pword" required><br> | |
<button type="submit" class="btn btn-secondary" name="login">Submit !</button> | |
</form> | |
<!--<div class="jumbotron" style="background-color:rgba(0,0,0,0)">--> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-lg" style="display:inline-block;height:100%;"> | |
<img class="img-fluid" src="pwo_banner.png" alt="PWO Banner" style="width:100%;-ms-interpolation-mode: bicubic; image-rendering: optimizeQuality;"> | |
<div> | |
<h1>Schüler</h1> | |
<?php | |
error_reporting( E_ALL ); | |
foreach ($_POST as $post) { | |
if (is_string($post)) { | |
echo "<p>".$post."</p>"; | |
if (!mb_detect_encoding($post, 'ASCII', true)) { | |
echo "<p>No ASCII !</p>"; | |
} | |
} | |
} | |
?> | |
</div> | |
</div> | |
</div> | |
</div> | |
<!--</div>--> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment