kabucek Posted September 18, 2008 Share Posted September 18, 2008 hello, I have issue with my php configuration file. There are 2 forms with some fields. 1 is for "member data" and second for "club info" here are the parts of the code: 1part) $fieldName="city"; $customLabel="City"; if ($errorArray[$fieldName]) {$customLabel="$customLabel*<BR><SPAN class=errorLabel>".$errorArray[$fieldName]."<P></SPAN>"; } $formFormatArray['labelOverride']=$customLabel; $tagName=$fieldName."TAG"; $$tagName=$classLink->getFormTag($fieldName, $$dataArrayName, $formFormatArray); if ($errorArray[$fieldName] AND $formFormatArray['cssTagClassError']) {$$tagName=str_replace($formFormatArray['cssTagClass'], $formFormatArray['cssTagClassError'], $$tagName); } $$targetString.=$$tagName; 2nd part) <tr valign='top' bgcolor='#FFFFFF'> <td width='105' height='26' align='left' class='paragraphbold'><div align='right'>City<font face='Arial, Helvetica, sans-serif' size='1' color='red'><em>*</em></font>{$errorArray["city"]}</div></td> <td height='26'><input name='recordDataArray[city]' value='{$recordDataArray['city']}' type='text' size='55'> </td> </tr> Those codes are in our reg-test.php file user told me that they want more fields to be displayed on their management web interface, so I went to another file listmem.php and add this code that allows to see the Club address: $title=""; $fieldString.=" <TD $fieldStyle> <NOBR>{$itemRecArray['street']} {$itemRecArray['city']} {$itemArray['state']} {$itemArray['zip']} $errorFlag</NOBR> </TD> "; $fieldTitleString.=" <TD $fieldTitleStyle> Club Address </TD> "; $fieldCount++; - but this is not working because there is previous form with the same field names in reg-test.php file and its picking up all the time city from the previous form. - where the member lives and not the club city. Any help or suggestions? thanks Quote Link to comment https://forums.phpfreaks.com/topic/124813-change-fields-name-in-table/ Share on other sites More sharing options...
fenway Posted September 29, 2008 Share Posted September 29, 2008 I have no idea what you're talking about -- try to explain this again. Quote Link to comment https://forums.phpfreaks.com/topic/124813-change-fields-name-in-table/#findComment-653266 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.