Insert your Name:

Insert your Text:

You forgot to insert a Name


"; } if(empty($Entry)) { echo "

You forgot to insert an Entry


"; } die; } elseif(count($Artist) < 4) { echo "

Your name have to few characters

"; echo "

Need 4 characters

"; die; } elseif(count($Entry) < 6) { echo "

Your entry have to few characters

"; echo "

Need 6 characters

"; die; } return 0; } function insert_Input($Artist, $Entry) { $FileHandler = fopen("gb.txt", "a"); $Comment = "

${Artist}

${Entry}

"; fwrite($FileHandler, $Comment); } function show_Entrys() { if(!is_file("gb.txt")) { echo "

No Entrys

"; die; } $GetEntrys = file_get_contents("gb.txt"); if(empty($GetEntrys) ) { echo "

No Entrys

"; die; } echo ""; echo nl2br($GetEntrys); echo "
"; } if(isset($Submit)) { if(check_Input($Artist, $Entry) == 0) { insert_Input($Artist, $Entry); echo "

Your Comment was added successfully

"; die; } } else { show_Entrys(); die; } ?>