all.
I've been trying to create an admin area for a website, and I've encountered a strange issue.
I wish to create a table with 'edit' and 'delete' buttons for each entry, so that an admin can edit the database.
The 'edit' button has a link which changes depending on the artist id in the database.
However, for some reason, when I click on an edit button, what gets appended to the link isn't what is in the form, I instead get something like : e0=Edit.
I've no idea what causes that. I've also tried Button forms, they seem to have similar effects. I didn't have any problems with the delete button because it didn't redirect to another page.
Here's one row for the table (the initial comes from code elsewhere) :
<form method="link" action="edit-artist.php/?aid='.$data['aid'].'">
<input type="submit" name = "e'.$count.'" value="Edit" />
</td><td>
</form>
The html code generates all right, but the only thing I find in the GET array (and that gets in the URL is e0=>edit (or e whatever => edit, depending where I click).
Do I have the wrong approach for this kind of problem ? Where is my mistake, anyway ?
Thanks in advance, Spliblib.
P.S : I apologise if this problem has already been submitted, however the terms are so generic I had some trouble finding anything similar.