The name of the submit button is not what you are checking is set:
if (isset($_POST['Submit'])) {
submit button:
<input name="submit" type="submit" value="Register ยป">
I am pretty sure POST is case sensitive
therefore you need to replace:
if (isset($_POST['Submit'])) {
with:
if (isset($_POST['submit'])) {
so your whole code would read:
<?PHP
//Get Config
include("config.inc.php");
//Get Header
include("" . $absolute_path . "/elements/header.php");
//Get DB INFO and Connect
include("" . $absolute_path . "/config/settings.inc.php");
if (isset($_POST['submit'])) {
print_r($_POST);
//Shortening Variables
$userid = $_POST['userid'];
print_r($userid);
$fname = $_POST['fname'];
print_r($fname);
$lname = $_POST['lname'];
print_r($lname);
$password = $_POST['password'];
print_r($password);
$vpassword = $_POST['vpassword'];
print_r($vpassword);
$ad1 = $_POST['ad1'];
print_R($ad1);
$ad2 = $_POST['ad2'];
print_r($ad2);
$zipcode = $_POST['zipcode'];
print_r($zipcode);
$hphone = $_POST['hphone'];
print_r($hphone);
$mphone = $_POST['mphone'];
print_r($mphone);
$pemail = $_POST['pemail'];
print_r($pemail);
$agreed = $_POST['agreed'];
print_r($agreed);
if ($password == $vpassword) {
if($agreed == 1) {
echo "Now we could write the Database with your information";
} else {
echo "<font color=\"red\">You have to read and agree the TOS</font>";
}
} else {
echo "<font color=\"red\">The passwords did not match.</font>";
}
}
?>
<br><br>
<p align="center">
Your personal information and data will be handled trustful and won't be given to third.<br>
For more information read our <!-- Coming soon --> <a href="<?PHP echo $public_url; ?>/#">privacy policy.</a><br>
</p>
<strong> User Registration </strong>
<form name="Registrationform" method="post" action="register.php">
<table align="center" border="0">
<tr>
<td><font color="red">*</font>Nickname:</td>
<td><input name="userid" type="text" id="userid" width="200"></td>
</tr>
<tr>
<td><font color="red">*</font>First name:</td>
<td><input name="fname" type="text" id="fname" width="250"></td>
</tr>
<tr>
<td><font color="red">*</font>Last name:</td>
<td><input name="lname" type="text" id="lname" width="250"></td>
</tr>
<tr>
<td><font color="red">*</font>Password:</td>
<td><input name="password" type="password" id="password" width="200"></td>
</tr>
<tr>
<td><font color="red">*</font>Verify Password:</td>
<td><input name="vpassword" type="password" id="vpassword" width="200"></td>
</tr>
<tr>
<td><font color="red">*</font>Adress Line 1:</td>
<td><input name="ad1" type="text" id="ad1" width="250"></td>
</tr>
<tr>
<td>Adress Line 2:</td>
<td><input name="ad2" type="text" id"ad2" width="250"></td>
</tr>
<tr>
<td><font color="red">*</font>Zip Code:</td>
<td><input name="zipcode" type="text" id="zipcode" width="50"></td>
</tr>
<tr>
<td>Home Phone:</td>
<td><input name="hphone" type="text" id="hphone" width="100"></td>
</tr>
<tr>
<td>Mobile Phone:</td>
<td><input name="mphone" type="text" id="mphone" width="100"></td>
</tr>
<tr>
<td><font color="red">*</font>Email:</td>
<td><input name="pemail" type="text" id="pemail" width="200"></td>
</tr>
</table>
<p align="center">
<font color="red">*</font><input name="Agreed" type="checkbox" id="agreed">I have read and agreed the Terms of Service<br>
</p>
<table border="0" align="center">
<tr>
<td><input name="reset" type="reset" value="Reset Form"></td>
<td><input name="submit" type="submit" value="Register ยป"></td>
</tr>
</table>
</form>
<?PHP
//Get Footer
include("" . $absolute_path . "/elements/footer.php");
?>
Hope this helps
TreColl