Jump to content

change fields name in table


kabucek

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/124813-change-fields-name-in-table/
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.