papaface Posted December 15, 2006 Share Posted December 15, 2006 Hello,Could someone inform me of how I can go about excluding the value of $_POST["submit"] in a foreach loop?regards Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted December 15, 2006 Share Posted December 15, 2006 [code]foreach ($_POST as $key => $value) { if ($key != "submit") { ...do stuff... }}[/code] Quote Link to comment Share on other sites More sharing options...
btherl Posted December 15, 2006 Share Posted December 15, 2006 Or if you really despise $_POST['submit'] and never want to see its face again, [code=php:0]unset($_POST['submit']);[/code] Quote Link to comment Share on other sites More sharing options...
papaface Posted December 15, 2006 Author Share Posted December 15, 2006 Thanks. Worked great. 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.