Giarc86
Expert Member
- Joined
- May 28, 2008
- Messages
- 1,243
- Reaction score
- 4
Hoping someone can help me. What would the correct syntax be to insert a Form/Input button into a PHP table? I want to insert a checkbox for each row.
I get a "Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' " which I did Google but I can't find where I am missing anything or where any \ should go.
Any help would be appreciated
Thanks
I get a "Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' " which I did Google but I can't find where I am missing anything or where any \ should go.
PHP:
<?php
echo "<table width='800' border='1' align='center' cellpadding='3' cellspacing='1'>
<tr>
<th>First Level.</th>
<th>Second Level</th>
<th>Third Level</th>
<th>Date</th>
</tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>"
'<form name="udform" method="GET" action="./test_udel.php" enctype="multipart/form-data">' "</td>" ;
echo "<td>"
' <input type="checkbox" name="delete[]" value="' . $row['id'] . '" />' "</td>";
echo "<td>"
' </form> ' "</td>" ;
echo "<td>" . $row['firstlevel'] . "</td>";
echo "<td>" . $row['secondlevel'] . "</td>";
echo "<td>" . $row['thirdlevel'] . "</td>";
echo "<td>" . $row['mydate'] . "</td>";
echo "</tr>";
}
echo "</table>";
?>
Any help would be appreciated
Thanks