Commit 5c36b8c2 authored by Daniel Teixeira's avatar Daniel Teixeira

adding registration form

parent 53d5dde6
body {
font-family: 'Roboto', sans-serif;
font-size: 18px;
}
a, a:visited, a:hover {
......@@ -32,7 +33,7 @@ a:hover {
}
#header h1 {
font-size: 6em;
font-size: 5em;
font-weight: bold;
text-shadow: 0px 0px 26px black, 0px 0px 26px black;
}
......
......@@ -24,13 +24,22 @@
</head>
<body>
<div id="header">
<img src="assets/images/SIB_logo_20ans_white.png" id="twentyyearsribbon">
<div class="row mlmr-none mt-80">
<div class="row mlmr-none mt-20">
<div class="col text-center">
<h1>GENOME JUMPER</h1>
<h2>COMING SOON</h2>
<h2>COMING VERY SOON</h2>
<form action="register.php" class="form-inline">
<p>Enter your email below to be the first notified!</p>
<div class="input-group">
<div class="input-group-addon"></div>
<input type="email" class="form-control" id="email" placeholder="E-mail address">
<div class="input-group-addon"></div>
</div>
<div class="row" style="margin: 10px;">
<button type="submit" class="btn btn-danger">Register</button>
</div>
</form>
</div>
</div>
<!--
......@@ -45,8 +54,8 @@
-->
<div class="row mlmr-none mt-30">
<div class="col col-lg-12 text-center stores">
<a href="http://google.com"><img src="assets/images/googleplay.png"></a>
<a href="http://google.com"><img src="assets/images/appStore.png"></a>
<a href="#"><img src="assets/images/googleplay.png"></a>
<a href="#"><img src="assets/images/appStore.png"></a>
</div>
</div>
......
<?php
$txt = "data.txt";
$fh = fopen($txt, 'w+');
if (isset($_POST['email'])) { // check if both fields are set
$txt=$_POST['email'];
file_put_contents('data.txt',$txt."\n",FILE_APPEND); // log to data.txt
exit();
}
fwrite($fh,$txt); // Write information to the file
fclose($fh); // Close the file
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment