Help with PHP
#9

<?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.
Reply


Messages In This Thread
Help with PHP - by Riddy - 19.05.2012, 21:29
Re: Help with PHP - by TheJayMan - 19.05.2012, 21:39
Re: Help with PHP - by Riddy - 19.05.2012, 21:46
Re: Help with PHP - by kikito - 19.05.2012, 21:49
Re: Help with PHP - by Riddy - 19.05.2012, 22:09
Re: Help with PHP - by Vince - 19.05.2012, 22:10
Re: Help with PHP - by Riddy - 19.05.2012, 22:14
Re: Help with PHP - by kikito - 19.05.2012, 22:18
Re: Help with PHP - by TheJayMan - 19.05.2012, 22:23
Re: Help with PHP - by Ricop522 - 19.05.2012, 22:34

Forum Jump:


Users browsing this thread: 6 Guest(s)