From:             [EMAIL PROTECTED]
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:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to