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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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.