

<?php
$username = $_POST['username'];
if ($username == ' ') {
$error = 'Invalid username';
}
else {
$error = '';
}
echo $error;
?>
Albino said:you could always check once theyve pressed submit, if it has invalid characters in it. that would be a lot easier.


