I have a form that submits to itself like this
<form action="" method="post">
<table >
<tr>
<td width="50"><input type="checkbox" name="client_id_C" value="#client_id#" ></td>
<td width="50"><input type="text" name="#client_id#_Fee" value=""> </td>
</tr>
</table>
</form>
The client_IDs are 101,102,103 etc
So when I fill out the form I get form values like this
101_Fee = 1000
102_Fee = 2000
103_Fee = 3000
I also get a list of the client_id's like
client_id_C = 20864,21238,21284
My question is once the form is submitted and the form reloads.
I want the fee values to populate the #client_id#_Fee text boxes, like this
<form action="" method="post">
<table >
<tr>
<td width="50"><input type="checkbox" name="client_id_C" value="#client_id#" ></td>
<td width="50"><input type="text" name="#client_id#_Fee" value="#(#client_id#_Fee)#"> </td>
</tr>
</table>
</form>
Obviously what I have in red doesn't work
The problem is how do I code to get the value?
For example
I want the value for client_ID 101 to be 1000
Like this
<form action="" method="post">
<table >
<tr>
<td width="50"><input type="checkbox" name="client_id_C" value="101" ></td>
<td width="50"><input type="text" name="101_Fee" value="1000"> </td>
</tr>
<tr>
<td width="50"><input type="checkbox" name="client_id_C" value="102" ></td>
<td width="50"><input type="text" name="102_Fee" value="2000"> </td>
</tr>
</table>
</form>
What code goes in the value where the red text is.?
Because the variable already contains # tags.