stuart7398 Posted April 10, 2008 Share Posted April 10, 2008 Hi. When a user leaves a field empty on my form, I don't want the field to show as empty on the display page. How do I get the field to NOT display at all? using MySql and php Thanks, Stuart. Link to comment https://forums.phpfreaks.com/topic/100505-invisible-empty-field/ Share on other sites More sharing options...
GingerRobot Posted April 10, 2008 Share Posted April 10, 2008 <?php if(!empty($_POST['field']){ //show the field and its value } Is that what you were after? Your question was a little vague. Link to comment https://forums.phpfreaks.com/topic/100505-invisible-empty-field/#findComment-513998 Share on other sites More sharing options...
soycharliente Posted April 10, 2008 Share Posted April 10, 2008 If you already have some code, it might be easier to help. Link to comment https://forums.phpfreaks.com/topic/100505-invisible-empty-field/#findComment-513997 Share on other sites More sharing options...
GingerRobot Posted April 10, 2008 Share Posted April 10, 2008 <?php if(!empty($_POST['field']){ //show the field and its value } Is that what you were after? Your question was a little vague. Link to comment https://forums.phpfreaks.com/topic/100505-invisible-empty-field/#findComment-513996 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.