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
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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