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 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 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. 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
Archived
This topic is now archived and is closed to further replies.