Skip to content

Instantly share code, notes, and snippets.

@jgmac1106
Forked from Zegnat/blub.php
Last active March 10, 2019 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgmac1106/c4cd4bef98acd88729289d9e4c3b9fe6 to your computer and use it in GitHub Desktop.
Save jgmac1106/c4cd4bef98acd88729289d9e4c3b9fe6 to your computer and use it in GitHub Desktop.
<?php
$var1 = $_POST['user_name'];
$var2 = $_POST['user_text'];
$var3 = $_POST['user_instagram'];
$var4 = $_POST['user_twitter'];
$var5 = $_POST['user_email'];
$var6 = $_POST['user_msg'];
$fileHandle = fopen("myDataFile", 'a');
fwrite($fileHandle, $var1);
fwrite($fileHandle, $var2);
fwrite($fileHandle, $var3);
fwrite($fileHandle, $var4);
fwrite($fileHandle, $var5);
fwrite($fileHandle, $var6);
fclose($fileHandle);
?>
<!DOCTYPE html>
<html>
<head>
<title>INTERTEXTrEVOLUTION</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/reset.css">
<link rel="stylesheet" href="/styles.css">
<link rel="stylesheet" href="/css/guestbook.css">
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-9ralMzdK1QYsk4yBY680hmsb4/hJ98xK3w0TIaJ3ll4POWpWUYaA2bRjGGujGT8w" crossorigin="anonymous">
<script src="/script.js" defer></script>
<link rel="webmention" href="https://webmention.io/jgmac1106homepage.glitch.me/webmention" />
<link rel="pingback" href="https://webmention.io/jgmac1106homepage.glitch.me/xmlrpc" />
<link rel="authorization_endpoint" href="https://indieauth.com/auth">
<link rel="token_endpoint" href="https://tokens.indieauth.com/token">
<link rel="webmention" href="https://webmention.io/jgregorymcverry.com/webmention" />
<link rel="pingback" href="https://webmention.io/jgregorymcverry.com/xmlrpc" />
</head>
<body>
<header>
<a href="index.html">
<div class="leading">
<h1 class="leading-bigtext">
INTERTEXTrEVOLUTION
</h1>
<h2 class="bigtext">
Make.Hack.Play.Learn
</h2>
</div>
</a>
<nav>
<div class="1">
<a href="aboutme.html" class="navLinks">About</a>
</div>
<div class="2">
<a href="https://quickthoughts.jgregorymcverry.com" class="navLinks">Blog</a>
</div>
<div class="3">
<a href="articles.html" rel="feed" class="navLinks">Articles</a>
</div>
<div class="4">
<a href="resume.html" class="navLinks">Vita</a>
</div>
<div class="5">
<a href="https://consulting.jgregorymcverry.com/" class="navLinks">Consulting</a>
</div>
<div class="6">
<a href="2toPonder.html" class="navLinks">Podcasts</a>
</div>
<div class="7">
<a href="following.html" class="navLinks">Following</a>
</div>
<div class="8">
<a href="annotations.html" class="navLinks">Annotations</a>
</div>
<div class="8">
<a href="imagecredits.html" class="navLinks">Img Credits</a>
</div>
</nav>
</header>
<main>
<div class="h-entry guestbook">
<p class="dt-published dates">
<time class="dt-published" datetime="<?php echo date("Y-m-d"); ?>"><?php echo date("Y-m-d"); ?></time>
</p>
<ul class="h-card deets">
<li class="p-author"><?php echo $var1; ?></li>
<li><a href="mailto:<?php echo $var5; ?>"></a><?php echo $var5; ?></li>
<li><a class="u-url" href="<?php echo $var2; ?>"><?php echo $var2; ?></a></li>
<li><a class="u-url" href="https://instagram.com/<?php echo $var3; ?>"><?php echo $var3; ?></a></li>
<li><a class="u-url" href="https://twitter.com/<?php echo $var4; ?>"><?php echo $var4; ?></a></li>
</ul>
<p class="p-content notes">
<?php echo $var6; ?>
</p>
</div>
<?php
echo file_get_contents( "fileHandle" ); // get the contents, and echo it out.
?>
</main>
<footer>
<div class="flex-item">
<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.<br>
<a href="https://microformats.org"><img class="https://indieweb.org/images/7/72/microformats-button.png"></a><br>
<a href="https://indieweb.org"><img src="https://indieweb.org/images/4/4a/indiewebcamp-button.png"></a>
<a href="https://indieweb.org/webmention"><img src="https://indieweb.org/images/0/03/webmention-button.png"></a>
<a href="https://microformats.org"><img src="https://indieweb.org/images/7/72/microformats-button.png"></a>
</div>
</footer>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>INTERTEXTrEVOLUTION</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/reset.css">
<link rel="stylesheet" href="/styles.css">
<link rel="stylesheet" href="/css/guestbook.css">
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-9ralMzdK1QYsk4yBY680hmsb4/hJ98xK3w0TIaJ3ll4POWpWUYaA2bRjGGujGT8w" crossorigin="anonymous">
<script src="/script.js" defer></script>
<link rel="webmention" href="https://webmention.io/jgmac1106homepage.glitch.me/webmention" />
<link rel="pingback" href="https://webmention.io/jgmac1106homepage.glitch.me/xmlrpc" />
<link rel="authorization_endpoint" href="https://indieauth.com/auth">
<link rel="token_endpoint" href="https://tokens.indieauth.com/token">
<link rel="webmention" href="https://webmention.io/jgregorymcverry.com/webmention" />
<link rel="pingback" href="https://webmention.io/jgregorymcverry.com/xmlrpc" />
</head>
<body>
<header>
<a href="index.html">
<div class="leading">
<h1 class="leading-bigtext">
INTERTEXTrEVOLUTION
</h1>
<h2 class="bigtext">
Make.Hack.Play.Learn
</h2>
</div>
</a>
<nav>
<div class="1">
<a href="aboutme.html" class="navLinks">About</a>
</div>
<div class="2">
<a href="https://quickthoughts.jgregorymcverry.com" class="navLinks">Blog</a>
</div>
<div class="3">
<a href="articles.html" rel="feed" class="navLinks">Articles</a>
</div>
<div class="4">
<a href="resume.html" class="navLinks">Vita</a>
</div>
<div class="5">
<a href="https://consulting.jgregorymcverry.com/" class="navLinks">Consulting</a>
</div>
<div class="6">
<a href="2toPonder.html" class="navLinks">Podcasts</a>
</div>
<div class="7">
<a href="following.html" class="navLinks">Following</a>
</div>
<div class="8">
<a href="annotations.html" class="navLinks">Annotations</a>
</div>
<div class="8">
<a href="imagecredits.html" class="navLinks">Img Credits</a>
</div>
</nav>
</header>
<main>
<div class="guestbook">
<p class="dt-published dates">
<time class="dt-published" datetime=". date("Y-m-d") .">13<sup>th</sup> November 2018</time>
</p>
<ul class="h-card deets">
<li class="p-author">name</li>
<li><a href="mailto:$mail"></a>$mail</li>
<li><a class="u-url" href="$url">$url</a></li>
<li><a class="u-url" href="https://instagram.com/$instagram">instagram</a></li>
<li><a class="u-url" href="https://twitter.com/$twitter">$twitter</a></li>
</ul>
<p class="p-content notes">
note
</p>
</div>
<details>
<summary>
Sign the Guestbook
</summary>
<div class="contain">
<div class="Contactwrapper">
<div class="form">
<h3>Send us a message</h3>
<form action="guestbook.php" method="post">
<p>
<label for="name">Your name</label>
<input type="text" id="name" name="user_name" />
</p>
<p>
<label for="website">My URL is...</label>
<input type="text" id="text" name="user_text" />
</p>
<p>
<label for="instagram">Instagram</label>
<input type="text" id="instagram" name="user_instagram" />
</p>
<p>
<label for="twitter">Twitter</label>
<input type="text" id="twitter" name="user_twitter" />
</p>
<p>
<label for="email">Email Address</label>
<input type="email" id="email" name="user_email">
</p>
<p class="full-width">
<label for="text">Write your message</label>
<textarea name="msg" id="user_msg" cols="30" rows="7"></textarea>
</p>
<p class="full-width">
<button type="submit" value="Submit">Send</button>
</p>
</form>
</div>
</div>
</div>
</details>
</main>
<footer>
<div class="flex-item">
<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.<br>
<a href="https://microformats.org"><img class="https://indieweb.org/images/7/72/microformats-button.png"></a><br>
<a href="https://indieweb.org"><img src="https://indieweb.org/images/4/4a/indiewebcamp-button.png"></a>
<a href="https://indieweb.org/webmention"><img src="https://indieweb.org/images/0/03/webmention-button.png"></a>
<a href="https://microformats.org"><img src="https://indieweb.org/images/7/72/microformats-button.png"></a>
</div>
</footer>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment