Skip to content

Instantly share code, notes, and snippets.

@Zegnat

Zegnat/blub.php Secret

Created March 10, 2019 11:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Zegnat/c6709adf85c73315cb79daa769e5af0c to your computer and use it in GitHub Desktop.
Save Zegnat/c6709adf85c73315cb79daa769e5af0c 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", 'w');
fwrite($fileHandle, $var1);
fwrite($fileHandle, $var2);
fwrite($fileHandle, $var3);
fwrite($fileHandle, $var4);
fwrite($fileHandle, $var5);
fwrite($fileHandle, $var6);
fclose($fileHandle);
?>
<div class="h-entry">
<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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment