I tried searching but couldnt find anything suitable for my problem.
basically im getting values from a mysql table and outputting them into a html table, no problem, i've managed to put a button in the loop which when clicked on deletes the row, no problem, but the button doesnt say delete it says the name of the username that im sending to my mysql query
<td> <?php echo (htmlspecialchars($row['name'])); ?> </tr>
<td> <?php echo (htmlspecialchars($row['surname']));?> </td>
<td> <?php echo (htmlspecialchars($row['age'])); ?> </td>
<td><input type="submit" name="delete_this" value="<?php echo (htmlspecialchars($row['username'])); ?>"></td>
it then sends it to:
$delete_me = $HTTP_POST_VARS['delete_this'];
and query is performed, but how can i get around the button not saying the value it holds? im well and truly stuck, i cud use radio buttons but this isnt appropriate to my problem im afraid