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";?> 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"; } Link to comment https://forums.phpfreaks.com/topic/167388-solved-boolean-error/#findComment-882620 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.