PHP & MySQL form question.
- by peakUC
How do I allow all users to have there username field empty without having them to enter a username when they submit the form using PHP and MySQL?
Here is part my PHP and MySQL code.
$username = mysqli_real_escape_string($mysqli, $purifier->purify(htmlentities(strip_tags($_POST['username']))));
if(isset($_POST['username'])) {
// Make…