Both players are ok. The default.html one has that flvplayer image in the upper right hand corner which is annoying.
As for the content of the tutorial, I have noticed some errors.
The entire tutorial is suppose to be about a blog, not a blog commenting system. Blogs don't allow anyone to add their own post. There should be an admin area where the blog owner updates and adds blog entries. You just have shown how to add comments.
HTML:
You didn't declare a doctype.
You are missing the <html></html> tags.
Your form tag is missing the action attribute which is required.
Your textarea is missing the cols and rows attributes which are required.
You are using inline styling which isn't good.
Indent your html so its easier to read.
PHP:
The method of post separation you used doesn't make sense to me. You are adding unnecessary data to the file.
Your code doesn't allow for line breaks. They are forgotten when the post is submitted. If you replace those with nl2br() and then store the posts with a new line between them you can just use file() to get the data.
You need to show how to open up files with fopen,fread,fclose because not all of the viewers will have php5 for the file_get_contents.
The alternating colors could be handled differently. Why not use the % operator?
Checking if $_POST is set will always return true. I wouldn't use that. You should check to see that the submit button name is in the post array.
There were some other things that didn't quite make sense to me. I will look through it again to see if I understand what you were trying to do.
Last edited by kkeith29; Oct 15th, 2009 at 8:02 am.
Reputation Points: 235
Solved Threads: 193
Nearly a Posting Virtuoso
Offline 1,315 posts
since Jun 2007