Code: Select all
<input type="text" size="4" maxlength="13" name="34[high]">$_POST[34][high]
but I'm getting the error
Code: Select all
Undefined variable: $_POST[34][high]Thanks!
Moderator: General Moderators
Code: Select all
<input type="text" size="4" maxlength="13" name="34[high]">Code: Select all
Undefined variable: $_POST[34][high]Code: Select all
echo $_POST['34']['high'];no. PHP automatically re-assigns anything with a [] in the name to an array. thereforemad_phpq wrote:You should only be able to call it like this
echo $_POST['34[high]'];
Code: Select all
<input name="foo[bar]" value="baz" />Code: Select all
$_POST['foo']['bar'] == 'baz';Code: Select all
var_dump($_POST);