Hallo,
ich habe ein kleines problem: Ich habe eine HTML formular wo etwas in eine datenbank abgesende wird. Aber sobalt man das Formular absende wird man wieder auf die Login seite geschmissen ich bin nochmal alles durch.
Formular:
Login
ich habe ein kleines problem: Ich habe eine HTML formular wo etwas in eine datenbank abgesende wird. Aber sobalt man das Formular absende wird man wieder auf die Login seite geschmissen ich bin nochmal alles durch.
Formular:
PHP-Code:
<form class="col-md-6 offset-md-3" role="form" method="post" action="transac_bewerbung.php?action=add">
<div class="alert alert-info alert-dismissible">
<h4><i class="icon fa fa-info"></i> Info!</h4>
</p>
Wir suchen Developer, Content, Builder und Designer <br>
um unser herausragendes und einzigartiges Netzwerk<br>
weiter zu verbessern. Beim <b>TooFame</b> Netzwerk findest <br>
Du ein hochmotiviertes Team um unser Netzwerk voranzutreiben und auszubauen.<br></p>
</div>
<div class="form-group">
<label><strong>Minecraft-Name <font color="red">*</font></strong></label>
<input type="text" class="form-control" name="name">
</div>
<div class="form-group">
<label><strong>E-Mail Adresse <font color="red">*</font></strong></label>
<input type="email" class="form-control" name="email">
</div>
<div class="form-group">
<label><strong>Geburtstag? <font color="red">*</font></strong></label>
<input type="date" class="form-control" name="geburtstag">
</span>
</div>
<div class="form-group">
<label><strong>Bewerbung als? <font color="red">*</font></strong></label>
<select name="als" class="form-control">
<option selected disabled style="font-style: italic;">Bitte auswählen</option>
<optgroup>
<option value="Developer">Developer</option>
<option value="Builder">Builder</option>esigner
<option value="Content">Content</option>
<option value="Designer">Designer</option>
</optgroup>
</select>
</div>
<div class="form-group">
<label><strong>Deine Bewerbung<font color="red">*</font></strong></label>
<textarea name="bewerbung" class="form-control" rows="5" value=>Text</textarea>
</div>
<div class="form-group">
<input type="hidden" name="IP_SPAM" value="<?php echo $_SERVER['REMOTE_ADDR'] ?>" />
</div>
<div class="form-group">
<input type="hidden" name="NAME_SPAM" value="<?php echo $_SESSION['UCP'] ?>" />
</div>
<div class="form-group">
<input type="hidden" name="datum" value="<?php
$timestamp = time();
$datum = date("d.m.Y", $timestamp);
echo $datum;
?>"/>
</div>
<div class="form-group">
<div class="col-md-6 offset-md-3">
<center>
<input type="submit" class="btn btn-secondary" value="Absenden" />
</center>
</div>
</div>
</form>
Login
PHP-Code:
<?php
include("dbconfig.php");
session_start();
if(!isset($_SESSION['UCP']))
{
header("Location: login.php");
}
?>
Kommentar