19.05.2012, 22:23
<?php
if ($username == null){
// The variable is blank..
} else {
// It is not blank..
}
?>
For string limit, if you mean allow only a certain limit, I'd just recommend putting maxlength="30" on the input (form) and limiting the length in the database.
if ($username == null){
// The variable is blank..
} else {
// It is not blank..
}
?>
For string limit, if you mean allow only a certain limit, I'd just recommend putting maxlength="30" on the input (form) and limiting the length in the database.