Jump to content

jjc180

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Everything posted by jjc180

  1. Output: I still can't solve this problem. It seems like what i have done SHOULD work.
  2. They look exactly the same. Is this a bug in PHP? Output: topmostSubform[0].Page1[0].SMART_ID___Row_1[0] topmostSubform[0].Page1[0].SMART_ID___Row_1[0] topmostSubform[0].Page1[0].SMART_ID___Row_1[0] topmostSubform[0].Page1[0].SMART_ID___Row_2[0] topmostSubform[0].Page1[0].SMART_ID___Row_1[0] topmostSubform[0].Page1[0].SMART_ID___Row_3[0] topmostSubform[0].Page1[0].SMART_ID___Row_1[0] topmostSubform[0].Page1[0].SMART_ID___Row_4[0] topmostSubform[0].Page1[0].SMART_ID___Row_1[0] topmostSubform[0].Page1[0].SMART_ID___Row_5[0] topmostSubform[0].Page1[0].SMART_ID___Row_1[0] topmostSubform[0].Page1[0].SMART_ID___Row_6[0] topmostSubform[0].Page1[0].SMART_ID___Row_1[0] topmostSubform[0].Page1[0].SMART_ID___Row_7[0] topmostSubform[0].Page1[0].SMART_ID___Row_1[0] topmostSubform[0].Page1[0].SMART_ID___Row_8[0] topmostSubform[0].Page1[0].SMART_ID___Row_1[0] topmostSubform[0].Page1[0].SMART_ID___Row_9[0] topmostSubform[0].Page1[0].SMART_ID___Row_1[0] topmostSubform[0].Page1[0].SMART_ID___Row_10[0] topmostSubform[0].Page1[0].SMART_ID___Row_1[0] topmostSubform[0].Page1[0].SMART_ID___Row_11[0] topmostSubform[0].Page1[0].SMART_ID___Row_1[0] topmostSubform[0].Page1[0].SMART_ID___Row_12[0] topmostSubform[0].Page1[0].SMART_ID___Row_1[0] topmostSubform[0].Page1[0].SMART_ID___Row_13[0] topmostSubform[0].Page1[0].SMART_ID___Row_1[0] topmostSubform[0].Page1[0].SMART_ID___Row_14[0] topmostSubform[0].Page1[0].SMART_ID___Row_1[0] topmostSubform[0].Page1[0].SMART_ID___Row_15[0]
  3. ok, but $fields['topmostSubform[0].Page1[0].SMART_ID___Row_1[0]'] is an object and $cell_1 is equal to topmostSubform[0].Page1[0].SMART_ID___Row_1[0]. So why does $fields[$cell_1] not work? How can I overcome this? Thanks. Also the following works fine: ($row_i is replace with "1") $row_i = 1; foreach($enrolled_array as $enrolled_client){ $cell_1 = "topmostSubform[0].Page1[0].SMART_ID___Row_1[0]"; $fields[$cell_1]->setValue($enrolled_client['clientid']); $row_i++; }
  4. Hey, I am trying to use a variable in an array key with no success. here is a snippet of code: $row_i = 1; foreach($enrolled_array as $enrolled_client){ $cell_1 = "topmostSubform[0].Page1[0].SMART_ID___Row_".$row_i."[0]"; $fields[$cell_1]->setValue($enrolled_client['clientid']); $row_i++; } I get the following error: [19-Mar-2009 08:20:50] PHP Fatal error: Call to a member function setValue() on a non-object in /home/prime09/public_html/autoforms/broker_invoice.php on line 139 If I manually put in the following it will work without any issues but of course what I am trying to do here is have the array key change each time the loop passes through. Works: $fields['topmostSubform[0].Page1[0].SMART_ID___Row_1[0]']->setValue($enrolled_client['clientid']); Any tips appreciated! I am sure its something obvious.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.