Should comments have tags at the beginning and end ?
Posted: Mon Mar 21, 2011 1:58 am
Hi All, I am very new to programming and php so please do not lose patience with me if I asked some very simple questions.
I have been looking at this piece of code and it is very obvious that php tags have been placed at the beginning and end of a comment ?
From what I have learned (self taught), this is wrong ? All answers and help appreciated, many thanks in anticipation.
<?php
$print_invited_members .= "<br>";
$print_im .= $print_invited_members;}?>
<tr>
<td colspan="5">
<input name="no_response" type="submit" value="No response">
<input name="responded_yes" type="submit" value="Responded Yes">
<input name="responded_no" type="submit" value="Responded No">
<input name="move_to_attending" type="submit" value="Move to attending">
</td>
</tr>
</form>
</table>
<?php /////////********** CORRELATE MEMBERS *************////////////// ?>
<table style="vertical-align:top" align="center" width="800" border="1" bgcolor="E0FFFF" cellspacing="5">
<tr>
<td bgcolor="#00ff00" colspan="6">
<div align="center"> <a name="CM">BOOKINGS</a></div>
</td>
</tr>
I have been looking at this piece of code and it is very obvious that php tags have been placed at the beginning and end of a comment ?
From what I have learned (self taught), this is wrong ? All answers and help appreciated, many thanks in anticipation.
<?php
$print_invited_members .= "<br>";
$print_im .= $print_invited_members;}?>
<tr>
<td colspan="5">
<input name="no_response" type="submit" value="No response">
<input name="responded_yes" type="submit" value="Responded Yes">
<input name="responded_no" type="submit" value="Responded No">
<input name="move_to_attending" type="submit" value="Move to attending">
</td>
</tr>
</form>
</table>
<?php /////////********** CORRELATE MEMBERS *************////////////// ?>
<table style="vertical-align:top" align="center" width="800" border="1" bgcolor="E0FFFF" cellspacing="5">
<tr>
<td bgcolor="#00ff00" colspan="6">
<div align="center"> <a name="CM">BOOKINGS</a></div>
</td>
</tr>