How to create a simple comment system in PHP

preview_player
Показать описание
This short tutorial will teach you how to create a simple comment system in PHP using PHP's fwrite function to write comments to a text file and then include that file on our web page.

Sorry the sound is so shit, my microphone is messing up. I'll work on it for next time.

Post your suggestions on what you want to see next in my tutorials below.

Рекомендации по теме
Комментарии
Автор

Great tutorials!! I'm very new at coding and being able to watch someone has really opened things up for me. Thanks!! Keep the videos coming.

jakewattam
Автор

man 10 years old video .. just awesome

gameginger
Автор

I was wondering where is the comment.html? Just with connment.php, how can I implement like the video showed? Many thanks!

WildYe
Автор

@tylerplack This tutorial is the simple version. I also created an advanced version that uses MySQL and ReCaptcha. You can find it on my channel.

flashreal
Автор

Fabulous! But, please: how to display posts into ascending order, where the latest post is at the top (and the oldest at the bottom end)?

PetoRybin
Автор

the content which i load in the input box and if load it again the same content are written as comments again and again what to do with this problem

dikshithomesh
Автор

I've been searching a tutorial on how to create a form for filling lets say a vacancy, posting on web where users can apply for the post???

patisken
Автор

I have a few problems. The PHP at the beginning of the file shows up on the preview. Also, I can input comments into the preview, but they are not written into the html file, so they don't show up. I have even tried to copy-paste the code found in these comments into the IDE, but the same problem still occurs.

nadivge
Автор

i am really confused, i followed the steps and you did a good job explaining but i am not sure what to save the tabs in my notepad++ as (html, php, normal txt file?)

nadrojkerem
Автор

Thanks. Learnt something New. But what about how to delete the comments as Admin??

patisken
Автор

What if you want it to write 2 lines of html code? Please help

MangoAnimates
Автор

that was a great tutorial. thank you from a newbie

bluenassarius
Автор

Can you get this comment to go into your email or some kind of document on your computer? How would it work? I'm new to coding. Any advice will help

livelyshively
Автор

How to include a reply function please that is a user commenting and commenting back

gicehajunior
Автор

The problem is when people are typing html code in the textarea and sens it this shows up
In other words, if someone types <font color=“red“>hello</font> the text is displayed as a red “hello“ message

theselfnamedprophet
Автор

is it fucntional? may question is, Is it functional when you connect the php login to database html? does it work.

柳はるき
Автор

When I press post, the only thing that happens is that the thing I wrote in the message box and the name I wrote in that box will disappear.. It wont actually post :/

forgetfulchannel
Автор

if i want to use this comment box on more than one page on the site, all the comments are posted on all pages. How can i make the comments to be posted only on the page they are written on?

anapavlovic
Автор

the codes are apperaring inthe comment section after i write the first code any help???

frost
Автор

how to make this automatic load when some other account chats ?

vaibhavacharya