echo '<form action="edit.php" name="editfrm" method="post" onsubmit="return confirm(\'Are you Sure!\');">';
should look like:
echo '<form action="edit.php" name="editfrm" method="post" onsubmit="return confirm(\'Are you Sure!\');">';
I did it twice in case it iddn't come out in the PHP tags.
You are ending your string, and not concatenating it. So to stop from ending the string prematurely, you need to escape the single quote with a backslash. It would be beneficial for you to read up on the Strings Information in the manual.
~Brett