I Have table on browser Like This
Name | Action |
________________________
Septiyo | Edit | Delete |
Fahmi | Edit | Delete |
Tejo | Edit | Delete |
For Edit, usually I use link like this
echo "<a href='edit.php?ID=$data['ID']'>Edit</a>";
With link, I can Include the ID variable and send to other Page.
The question is, if I change The Link with Button html. How can I include the variable?
My Button like this
echo "<input type='button' value='Edit' onclick='window.location=edit.php?ID=$data['ID']'>";
and it not Work.
Can anyone Help me?
Im very Appreciated your Answer.
Thanks.