Teknik is a suite of services with attractive and functional interfaces. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
580 B

<?php
require_once('config.php');
//initialize php variables used in the form
$username = "";
//check to see that the form has been submitted
if(isset($_POST))
{
$username = $_POST['username'];
$userTools = new UserTools();
if ($username == "")
{
echo "How about something we can read";
}
else if ($userTools->checkUsernameExists($username))
{
//successful login, redirect them to a page
echo "That username is taken =(";
}
else
{
echo "true";
}
}
else
{
echo "Error";
}
?>