I want to add an ‘add comment’ form to my website so users can post comments which update the html and display them.
So far I have the HTMLJavascript done, I am just confused how I would use the information from the form to create dynamic html. Here is the form i created:
[CODE]
<a href=”javascript:{ document.getElementById(‘addcomment’).style.display
= ‘block’; void(0); }”>add a comment</a>
<div style=”display: none;” id=”addcomment”>
<form class=”comment” method=”post”>
<label for=”comment_name”>name:</label>
<input name=”comment_name” size=”25″ value=”” type=”text”/>
<label for=”comment_comment”>comment:<br /></label>
</label><textarea name=”comment_comment” rows=”7″ cols=”30″></textarea><br/>
<input value=”post comment” type=”submit”/><br/></form></div>
thanks