Help with PHP
#8

If you use the empty(never used it) function or '', it can help you out .
like
PHP код:
if(isset($_POST['user'] == "")) echo 'Please fill up the username field!';
else {
// continue the code

Or setup more than 1 $_POST on a if, like:
PHP код:
if(isset($_POST['user'] == '')||($_POST['password'] == '')||($_POST['e-mail'] == '')) echo 'Please fill up all fields.';
else {
// continue the code

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: 7 Guest(s)