ID: 9924 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Feedback Status: Bogus Bug Type: Arrays related Assigned To: Comments: send twice.. (#9926) Previous Comments: --------------------------------------------------------------------------- [2001-03-22 10:14:00] [EMAIL PROTECTED] i would suggest that you put qoutes arround *all* tag attribute values: <input type="Hidden" name="Service[<?php echo $counter ?>]" value="<?php echo odbc_result($result, 'ServiceId')?>" > and you could use var_dump($HTTP_POST_VARS) and the generated HTML code to further analyse the cause of the problem? --------------------------------------------------------------------------- [2001-03-22 09:57:27] [EMAIL PROTECTED] 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. --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9924&edit=2 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]