Re[2]: [PHP] Undefined index
| From: | Tom Rogers | Date: | Thu, 08 May 2003 06:50:52 +0000 |
| Subject: | Re[2]: [PHP] Undefined index | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146789@lists.php.net to get a copy of this message | ||
Hi,
A little typo crept in there .. should be
$action = (isset($_GET['action']))? $_GET['action'] : 'None';
switch ($action) {
case 'None':
echo "<a
href=\"index.php?action=Test&variable=yes\">test</a>";
break;
case "Test":
$variable = (isset($_GET['variable']))? $_GET['variable'] : 'Not
Set';
echo $variable;
break;
}
--
regards,
Tom