McBryver Posted May 19, 2010 Share Posted May 19, 2010 Is there a better way of doing this? I am getting an Error from this: foreach($HTTP_POST_VARS as $key => $value ){ $cgi[$key]=$value; } foreach($HTTP_GET_VARS as $key => $value ){ $cgi[$key]=$value; } I am getting this error from it: Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\script\system.php on line 8 Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\script\system.php on line 11 Any Help Would be Great Thanx, Bryver. Quote Link to comment https://forums.phpfreaks.com/topic/202214-cgi-as-_post/ Share on other sites More sharing options...
trq Posted May 19, 2010 Share Posted May 19, 2010 $HTTP_POST_VARS has long been deprecated in favor of $_POST. Quote Link to comment https://forums.phpfreaks.com/topic/202214-cgi-as-_post/#findComment-1060333 Share on other sites More sharing options...
kenrbnsn Posted May 19, 2010 Share Posted May 19, 2010 What are you trying to do? Ken Quote Link to comment https://forums.phpfreaks.com/topic/202214-cgi-as-_post/#findComment-1060338 Share on other sites More sharing options...
McBryver Posted May 19, 2010 Author Share Posted May 19, 2010 NVM I went back to $_POST not worth the hasle. Quote Link to comment https://forums.phpfreaks.com/topic/202214-cgi-as-_post/#findComment-1060341 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.