otuatail Posted June 22, 2015 Share Posted June 22, 2015 if($POST['F_Name'] != "") echo $_POST['F_Name']; else echo "No F name"; if(trim($POST['F_Name']) != "") echo $_POST['F_Name']; else echo "No F name"; if(trim($POST['F_Name']) !== "") echo $_POST['F_Name']; else echo "No F name"; I have tried all combinations Quote Link to comment https://forums.phpfreaks.com/topic/296949-how-to-tell-if-a-textbox-is-empty-on-submit/ Share on other sites More sharing options...
mikosiko Posted June 22, 2015 Share Posted June 22, 2015 $POST is not the same as $_POST Quote Link to comment https://forums.phpfreaks.com/topic/296949-how-to-tell-if-a-textbox-is-empty-on-submit/#findComment-1514552 Share on other sites More sharing options...
otuatail Posted June 22, 2015 Author Share Posted June 22, 2015 Sorry missed that one. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/296949-how-to-tell-if-a-textbox-is-empty-on-submit/#findComment-1514553 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.