Code: Select all
global ...Here's the function call:
Code: Select all
loginForm($currentLoginText, $self);Code: Select all
echo "currentLoginText length: " . count($currentLoginText) . "<br>";Code: Select all
currentLoginText length: 13Code: Select all
echo "textArray length: " . count($textArray) . "<br>";Code: Select all
textArray length: 0Code: Select all
function loginForm($textArray, $actionValue)
{
echo "textArray length: " . count($textArray) . "<br>";
// Start displaying form... rest of function
}Incase it matters the array elements are not numbered, they are named, ie
Code: Select all
$currentLoginText['loginMessage']