Hi, I am new to web development, i need to develop a comment box, and save those comments in a file( either database or normal text pad), so that i can retrieve them later and display them on my web.
My server does not support php or anyother special scriptin, so i believe that i have to code in javascript, can anyone please help me with the code for doing this, as to how to implement a comment box and save the comments in file using javascript.
Thanks in advance
Sarah

This can't be done in Javascript since its a client side technology. The only thing a Javascript code can store on client's machine is cookies which can't exceed 4KB, so I guess its out of question.

You would require some sort of server side language with a database to store the comments.

Are you absolutely sure you can't use php or ASP on your server. What host is it on?

:) Here is the code for a comment box:

<div id="HCB_comment_box">Comments by <a href=http://www.example.com>example.com</a> are loading...</div>
 <link rel="stylesheet" type="text/css" href="http://www.htmlcommentbox.com/static/skins/shady/skin.css" />
 <script type="text/javascript" language="javascript" id="hcb"> /*<!--*/ (function(){s=document.createElement("script");s.setAttribute("type","text/javascript");s.setAttribute("src", "http://www.htmlcommentbox.com/jread?page="+escape(""+window.location).replace("+","%2B")+"&opts=406&num=10");if (typeof s!="undefined") document.getElementsByTagName("head")[0].appendChild(s);})(); if(typeof hcb_user=="undefined")hcb_user={};hcb_user.submit="";/*-->*/ </script>

Excellent find :)
Too bad you didn't post this solution when this thread was active - three years ago :(

@TrigonSearch - AWESOME!!
Thank you for posting a year later - YOU SAVED ME!!
<snip>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.