You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.2 KiB
PHTML

2 years ago
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Aliens Abducted Me - Abduction Report</title>
<style>
</style>
</head>
<body>
<h1>Aliens Abducted Me - Abduction Report</h1>
<main>
<?php
$when_it_happened = $_POST['when'];
$how_long = $_POST['howlong'];
$alien_description = $_POST['description'];
$tabby_spotted = $_POST['tabbyspotted'];
$email = $_POST['email'];
echo '<p>Thanks for submitting the form.<br>';
echo 'You were abducted ' . $when_it_happened;
echo ' and were gone for ' . $how_long . '<br>';
echo 'Describe them: ' . $alien_description . '<br>';
echo 'Was Tabby there? '. $tabby_spotted . '<br>';
echo 'Your email address is ' . $email . '</p>';
?>
</main>
<footer id="vLinks">
</footer>
<script>
var loc = window.location.href;
var linkStr = '<a href="http://validator.w3.org/check?uri=';
linkStr += loc;
linkStr += '">\n<strong> HTML </strong> Valid! </a> |';
linkStr +=' <a href="http://jigsaw.w3.org/css-validator/validator?uri='
linkStr += loc;
linkStr += '?profile=css3">\n<strong> CSS </strong> Valid! </a>'
console.log(linkStr);
var footer = document.getElementById("vLinks");
console.log(footer);
footer.innerHTML = linkStr;
</script>
</body>
</html>