updates
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
<h1>beavis.php</h1>
|
||||
<h1>beavis</h1>
|
||||
<h1>beavi</h1>
|
||||
<h1>avis.php</h1>
|
||||
<h1>beavis.p</h1>
|
||||
@@ -0,0 +1 @@
|
||||
Please enter a word in the field below. Thank you!
|
||||
@@ -0,0 +1,39 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<title>Dummy Title</title>
|
||||
<link href="css/styles.css" type="text/css" rel="stylesheet">
|
||||
<script src="js/index.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Hello cruel world!</h1>
|
||||
<?php
|
||||
$content = '';
|
||||
$fs = fopen('includes/instructions.txt', 'r');
|
||||
while ($str = fgets($fs)) {
|
||||
$words = explode(' ', $str);
|
||||
foreach ($words as $w) {
|
||||
$content .= '<span>' . $w . '</span>';
|
||||
}
|
||||
}
|
||||
echo $content;
|
||||
$form = '
|
||||
<form method="post">
|
||||
<label for="word">Word</label>
|
||||
<input type="text" name="word" id="word" placeholder="word">
|
||||
<input type="submit">
|
||||
</form>
|
||||
';
|
||||
|
||||
if (empty($_POST))
|
||||
echo $form;
|
||||
else {
|
||||
echo $form;
|
||||
echo $_POST['word'];
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user