Commit c68955c6 authored by Nico Schallehn's avatar Nico Schallehn

fix im form

parent 5af36d7e
<?php
if(isset($_GET["anmelden"])){
if(isset($_POST["anmelden"])){
$ErrorBox = '<div class="alert alert-success">'.PHP_EOL.
'<strong>Success!</strong> '.$_GET["api-key"].PHP_EOL.
'<strong>Success!</strong> '.$_POST["api-key"].PHP_EOL.
'</div>'.PHP_EOL;
}
......@@ -68,16 +68,16 @@ if(isset($_GET["anmelden"])){
<h1>Anmeldung</h1>
<?php echo $ErrorBox;?>
<form role="form">
<div class="form-group">
<label for="email">API-Schlüssel:</label>
<input type="text" maxlength="10" class="form-control" id="api-key">
</div>
<div class="checkbox">
<label><input type="checkbox"> Länger angemeldet bleiben (via Cookies)</label>
</div>
<button type="submit" class="btn btn-default" name="anmelden">Anmelden</button>
</form>
<form role="form" method="post">
<div class="form-group">
<label for="email">API-Schlüssel:</label>
<input type="text" maxlength="10" class="form-control" id="api-key" name="api-key">
</div>
<div class="checkbox">
<label><input type="checkbox" name="angemeldetbleiben"> Länger angemeldet bleiben (via Cookies)</label>
</div>
<button type="submit" class="btn btn-default" name="anmelden">Anmelden</button>
</form>
</div>
</div><!-- /.container -->
......
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