Why am I getting this error?
Posted: Thu Apr 26, 2007 11:04 am
Undefined index: thisEthernet
Here is the relevent code:
Where it is choking:
Where THIS_ETH is set:
Where THIS_ETH is defined:
The funny thing is, is that in the error message, it prints the corrent value of the THIS_ETH!? See:
Here is the relevent code:
Where it is choking:
Code: Select all
function process()
...
if (($_POST[THIS_ETH] >= 0) && ($_POST[THIS_ETH] < getNumberEthPorts())) <== CHOKES HERE
{
// Ethernet number is not valid (not sure how this could happen)
echo '<script language="Javascript">';
echo "alert('$no_ethnum ($_POST[THIS_ETH])')";
echo '</script>';
$isError = true;
}
...Code: Select all
function display()
...
echo $tab3 . '<select name="THIS_ETH" onChange="window.alert(\'' . $etheralertText.'\')"' . ">\n";
...Code: Select all
function constants()
...
define('THIS_ETH', 'thisEthernet');
...Code: Select all
Array
(
[THIS_ETH] => 4
...
)