This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* "Undefined index" means that you're trying to fetch data from a variable | |
* that doesn't exist (or isn't "defined"). Looking at your code here, | |
* personally, what I would do here, firstly, is check whether your $_REQUEST | |
* variables are empty, and if they're not, *then* set your $action variable, | |
* rather than before. | |
*/ | |
if (!empty($_REQUEST['action'])) { | |
$action = $_REQUEST['action']; |