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? 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. 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 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
Archived
This topic is now archived and is closed to further replies.