Wed Mar 21, 2018 4:38 pm
Login Register Lost Password? Contact Us

Comments section within KEL CHM

Forum for KEL development, users and support

Tue Mar 28, 2017 11:55 am Change Time Zone


I am trying to create a comments section within my "HELP" document, which I am creating within KEL CHM.

Below is the code:


<link rel="stylesheet" href="style.css" type="text/css">


<form action="com.txt" method="POST">

<label> Name:
<input type="text" name="Name" class="Input" style="width: 100%" required>
<label> Comment: <br>
<textarea name="Comment" class="Input" style="width: 100%" required></textarea>
<input type="submit" name="Submit" value="Submit Comment" class="Submit">





print "<h1>Your comment has been submitted!</h1>";

$Name = $_POST['Name'];
$Comment = $_POST['Comment'];

#Get old comments
$old = fopen("comments.txt", "r+t");
$old_comments = fread($old, 1024);

#Delete everything, write down new and old comments
$write = fopen("comments.txt", "w+");
$string = "<b>".$Name."</b><br>".$Comment."<br>\n".$old_comments;
fwrite($write, $string);

#Read comments
$read = fopen("comments.txt", "r+t");
echo "<br><br>Comments<hr>".fread($read, 1024);

Posts: 1
Joined: Tue Mar 28, 2017 11:52 am

Wed Apr 05, 2017 1:48 pm Change Time Zone

I'm afraid you have found the wrong location for questions about the KEL CHM product. This forum is for the Knowledge Engineering Language for the HPCC big data platform. Nobody here is knowledgeable about help files. Sorry.
Posts: 2
Joined: Fri Jan 27, 2012 8:08 pm

Return to KEL

Who is online

Users browsing this forum: No registered users and 1 guest