How can I add a table around my code. I am new to php and I am woring on an assignment for Uni.
When I try to add the table tags the layout gets messed up. Can some please help?
<form action="gradebook3.php" method="post">
<H4>Exam and Coursework Marks and Comments for
HTML;
print $line['firstname']." ".$line['surname']." (#".$line['upn'].") in set ".$line['english_set'];
print "</h4> <table width=\"100%\" border=\"0\" cellpadding=\"5\"><tr><td class=\"form_labels\">";
print "Exam Mark ";
print "<input type='text' name='exam_mark' size='3' ";
print 'value="'.$line['english_exam1_mark'].'"><br><br>';
print 'Exam Comments <br><textarea name="exam_comment" cols="51" rows="5">';
print $line['english_exam1_comment']."</textarea>";
print '<br><br>';
print "Coursework mark: \n<input type='text' name='cw_mark' size='3' ";
print 'value="'.$line['english_cw1_mark'].'"><br><br>';
print 'Coursework Comments: </br><textarea name="cw_comment" cols="51" rows="5">';
print $line['english_cw1_comment']."</textarea> </br></br>";
print "Poetry <select name='poetry'>,<option value='No Commendation'>No Commendation</option> <option value='Commendation Awarded'>Commendation Awarded</option>";
print "</select><br><br>";
print "Creative Writing <select name='creative'>,<option value='No Commendation'>No Commendation</option> <option value='Commendation Awarded'>Commendation Awarded</option>";
print "</select><br><br>";
print "Literary Interpretation <select name='lit_int'>,<option value='No Commendation'>No Commendation</option> <option value='Commendation Awarded'>Commendation Awarded</option>";
print "</select><br><br>";
print 'Overall Comment </br><textarea name="overallcomment" cols="51" rows="5">';
print $line['overall_comment']."</textarea> <br>";
print '<input type="hidden" name="stu_upn" value="';
print $line['upn'].'"><br>';
print '<input type="submit" value="Submit">';
print "</form>\n<br>";