rsalumpit Posted July 20, 2009 Share Posted July 20, 2009 What is the purpose of: $meith = 0; if( isset($_REQUEST['uieth'])) $meith = $_REQUEST['uieth']; this is included on one of my homework i just dont get this. my answer is: if the $_REQUEST['uieth'] then $meith=$_REQUEST['uieth'] right? is there any other explanation on this one? Quote Link to comment https://forums.phpfreaks.com/topic/166601-solved-tricky-php-question-2/ Share on other sites More sharing options...
Adam Posted July 20, 2009 Share Posted July 20, 2009 It's basically testing to make sure that "uieth" has either been passed as a $_POST or $_GET parameter, and if so it's assigning it to the $meith variable; default value of 0. Quote Link to comment https://forums.phpfreaks.com/topic/166601-solved-tricky-php-question-2/#findComment-878488 Share on other sites More sharing options...
rsalumpit Posted July 20, 2009 Author Share Posted July 20, 2009 It's basically testing to make sure that "uieth" has either been passed as a $_POST or $_GET parameter, and if so it's assigning it to the $meith variable; default value of 0. yes thats what i really thought..thnx for that Quote Link to comment https://forums.phpfreaks.com/topic/166601-solved-tricky-php-question-2/#findComment-878492 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.