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 Link to comment https://forums.phpfreaks.com/topic/30706-excluding-a-_post-value/ 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] Link to comment https://forums.phpfreaks.com/topic/30706-excluding-a-_post-value/#findComment-141494 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] Link to comment https://forums.phpfreaks.com/topic/30706-excluding-a-_post-value/#findComment-141499 Share on other sites More sharing options...
papaface Posted December 15, 2006 Author Share Posted December 15, 2006 Thanks. Worked great. Link to comment https://forums.phpfreaks.com/topic/30706-excluding-a-_post-value/#findComment-141512 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.