endwhile
to make a nice readable separation of php and html.Don't echo blocks of code if you don't have to.echo
:?>
, and then reopening with <?php
before the rest of your code.echo
HTML when within PHP. It makes your code more readable. Also, I suggest using a for
loop rather than what you have there.'[form-html goes here]';
inside the while loop. Make sure to escape all the other '
.