I changed this:
<tr>
<td class="KT_th"><label for="sample_url">sample_url:</label></td>
<td><input type="text" name="sample_url" id="sample_url" value="<?php echo KT_escapeAttribute($row_rspaper['sample_url']); ?>" size="32" />
<?php echo $tNGs->displayFieldHint("sample_url");?> <?php echo $tNGs->displayFieldError("paper", "sample_url"); ?> </td>
</tr>
To this:
<input type="hidden" name="sample_url" id="sample_url" value="images/<?php echo KT_escapeAttribute($row_rspaper['id_paper']); ?>_sample.jpg" />
But I have a problem:
images/_sample.jpg
The id is not added. The code: <?php echo KT_escapeAttribute($row_rspaper['id_paper']); ?>
does not pass the id.
The field "id_paper" in this code <?php echo KT_escapeAttribute($row_rspaper['id_paper']); ?> is not a text box field on the page. It is primary key incremented by mySQL. So the code can't find a field named "id_paper" and value is not entered. I could be worng.
But somehow the page assigns the correct id to my slave records on second table? (pass the primary key as foreign key to second table) Can't I use this to add a prefix to my "_sample.jpg."? But I don't know how to get this information.
I designed the page using dreamweaver developer toolbox "insert into two pages wizard" and customized it like shown here:
http://209.85.129.132/search?q...=3&hl=lt&ct=clnk&gl=lt