PHP 4.0 Bug #9924: Warning: Undefined index: Service[1]
| From: | john at neutralize dot com | Date: | Thu, 22 Mar 2001 14:57:27 +0000 |
| Subject: | PHP 4.0 Bug #9924: Warning: Undefined index: Service[1] | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-49743@lists.php.net to get a copy of this message | ||
From: john@neutralize.com
Operating system: Windows 98
PHP version: 4.0.4pl1
PHP Bug Type: Arrays related
Bug description: Warning: Undefined index: Service[1]
I am dynamically creating input fields in my form with their values stored in an array:
<input type="Hidden" name=Service[<?php echo $counter ?>] value=<?php echo
odbc_result($result, "ServiceId") ?>>
These submit fine but I am having trouble accessing the results of the array from the post
variables:
$serviceId = $HTTP_POST_VARS["Service[".$counter."]"];
Do I need to use unicode decompression before referencing the variables or am I just building the
reference wrong?
Have looked at PHP help but only tells you how to use arrays in form variables not how to retrieve
them.
--
Edit Bug report at: http://bugs.php.net/?id=9924&edit=1