JezK
Edit File: register.php
<?php session_start(); include('adm_operations_today.php'); $operations=new adm_operations(); if(isset($_POST['check'])) { $result=$operations->getlicenseverify($_POST['licensekey']); if($result=='noentry') echo "<script>alert('Invalid license key, Please provide correct one');</script>"; else if($result=='exist') { echo "<script>alert('You have already registered with us, Please login');</script>"; echo "<script>location.replace('index.php');</script>"; } else { $_SESSION['child']['school_ok']=$result[0]; echo "<script>location.replace('schoolsignup.php?school_name=".$result[1]."');</script>"; } } ?> <!DOCTYPE html> <html> <head> <title>Signup</title> <link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet"> <style> body{ background-color: #01aee6; font-family:Arial, Helvetica, sans-serif; } #bg{ position:relative; top:20px; height:250px; width:450px; background-color:#01aee6; background-size:cover; margin: auto; position: absolute; top: 0; left: 0; bottom: 0; right: 0; } .module { background:#FFFFFF; height:250px; width:450px; border-radius: 12px; -webkit-border-radius: 12px; -moz-border-radius: 12px; -o-border-radius: 12px; } .form{ float:left; height:86%; width:100%; box-sizing:border-box; padding:40px; margin-top:-30px; } .textbox{ height:38px; width:100%; border-radius:1px; border:rgba(0,0,0,.3) 1px solid; box-sizing:border-box; padding:7px; margin-bottom:30px; margin-top:-5px; font-family:Arial, Helvetica, sans-serif; font-style:normal; font-size:13px; } .textbox:focus{ outline:none; border:rgba(24,149,215,1) 1px solid; color:#666666; } #button { height:38px; width:100%;background:#01aee6; color:#FFFFFF; } #button:hover { background:#a5de37; } </style> </head> <body> <div id="bg"> <div class="module"> <div class="log" align="center"> <img class="img" src="images/logo-approved.png" height="60" width="190" style=" margin-top:20px; margin-bottom:20px;"> <form class="form" method="post"> <input type="text" placeholder="License key" class="textbox" name="licensekey" required /> <input type="submit" value=" Register" name="check" id="button" class="btn btn-default" /> </form> </div> </div> </div> </body> </html>