Okay so guys, I'm new to PHP. I'm having problems adding an "Edit" button as fourth element on 4th column(Action) which is a th. I'll need to add an Edit button on each of book titles and bring the user to an Edit page so they can Edit the book information. I don't know what to do next. I don't know how to add the button and at the same time pass the edit request through POST. What should I change? How do I embed the html within php
Btw, I'm using XAMPP and notepad++
Thanks.
<?php
include('databaseConnection.php');
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="./css/librarySystem.css">
<title> Book List </title>
</head>
<div id="booklist_container">
<table id="booklist_table">
<?php
$select_all_books = "SELECT * FROM booklist";
$result = mysql_query($select_all_books);
echo "<tr>";
echo "<th>" ."Title". "</th>" ;
echo "<th>" ."Author". "</th>" ;
echo "<th>" ."ISBN" . "</th>" ;
echo "<th>" ."Action". "</th>";
echo "</tr>";
echo "<form method="POST" action="edit.php">" ;
while($row = mysql_fetch_array($result))
{
$authorVar = $row['Author'];
$titleVar = $row['Title'];
$ISBN = $row['ISBN'];
echo "<tr>";
echo "<td>" . $titleVar. "</td>";
echo "<td>" . $authorVar. "</td>";
echo "<td>" . $ISBN . "</td>";
echo"<input type="button" value="Edit Info">" ;
echo "</tr>";
} // end of while loop
echo "</form>" ;
?>
</table>
</div>
</html>