<?php
require 'include/head.inc';
require 'include/prefs.inc';
+require 'include/common.inc';
+
if(isset($_POST['submit']) && $_POST['firstname']!="" && $_POST['lastname']!=""
&& $_POST['mnumber']!="" && $_POST['email']!="" && $_POST['password']!="")
$email = $_POST['email'];
$password = $_POST['password'];
+ if( ! is_numeric($mnumber) ) {
+ block("red", "Mat.nummer has to be numeric!");
+ exit;
+ }
+
require 'include/db.inc';
// user already exists //