robert_gsfame Posted July 25, 2009 Share Posted July 25, 2009 can anyone explain this to me..is it correct if i put the code this way <?php if($_POST['submit'])&&(!empty($_POST['textarea']))){ echo "okay";}else{ echo "wrong";?> Quote Link to comment https://forums.phpfreaks.com/topic/167388-solved-boolean-error/ Share on other sites More sharing options...
ignace Posted July 25, 2009 Share Posted July 25, 2009 No. It should be: if(isset($_POST['submit']) && !empty($_POST['textarea'])) { echo "okay"; } else { echo "wrong"; } Quote Link to comment https://forums.phpfreaks.com/topic/167388-solved-boolean-error/#findComment-882620 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.