kimerajamm Posted June 14, 2010 Share Posted June 14, 2010 How do I find out if an array has values posted to each of its elements? I need to know that EVERY element has been filled out. :( :( :( Quote Link to comment Share on other sites More sharing options...
plutomed Posted June 14, 2010 Share Posted June 14, 2010 print_r($arrayName); Quote Link to comment Share on other sites More sharing options...
saviola Posted June 14, 2010 Share Posted June 14, 2010 echo "<pre>"; print_r($array); Quote Link to comment Share on other sites More sharing options...
plutomed Posted June 14, 2010 Share Posted June 14, 2010 echo "</pre>"; Need the closing tag aswell. Quote Link to comment Share on other sites More sharing options...
ignace Posted June 14, 2010 Share Posted June 14, 2010 How do I find out if an array has values posted to each of its elements? if (isset($_POST['field1'], $_POST['field2'], $_POST['field3'], ..)) { Returns false if any of those fields is not defined. 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.