comparison themes/blog.steve.org.uk/comment-form.inc @ 150:4a882ba147e4

Updated to allow Ajax to be used for comment submission.
author Steve Kemp <steve@steve.org.uk>
date Mon, 31 Dec 2007 00:01:51 +0000
parents 1ae476191bec
children 4d2f0d6866e5
comparison
equal deleted inserted replaced
149:88d1f5caebd7 150:4a882ba147e4
1 <!-- tmpl_if name='comments_enabled' --> 1 <!-- tmpl_if name='comments_enabled' -->
2 <h3>Add A Comment</h3> 2 <h3>Add A Comment</h3>
3 <blockquote> 3 <blockquote>
4 <div id="output">
4 <form action="/cgi-bin/comments.cgi" method="post"> 5 <form action="/cgi-bin/comments.cgi" method="post">
5 <input type="hidden" name="id" value="<!-- tmpl_var name='link' escape='html' -->"> 6 <input type="hidden" name="id" value="<!-- tmpl_var name='link' escape='html' -->">
6 <input type="hidden" name="captcha" value=""> 7 <input type="hidden" name="captcha" value="">
7 <table> 8 <table>
8 <tr><td>Your Name</td> 9 <tr><td>Your Name</td>
10 <tr><td>Your Email</td> 11 <tr><td>Your Email</td>
11 <td><input type="text" size="55" name="mail"></td></tr> 12 <td><input type="text" size="55" name="mail"></td></tr>
12 <tr><td colspan="2">Your Comment<br /> 13 <tr><td colspan="2">Your Comment<br />
13 <textarea name="body" rows="10" cols="60"> 14 <textarea name="body" rows="10" cols="60">
14 </textarea></td></tr> 15 </textarea></td></tr>
15 <tr><td></td><td align="right"><input type="submit" name="submit" value="Post Comment"></td></tr> 16 <tr><td></td><td align="right"><input type="submit" name="submit" value="Post Comment" onClick="submitAjax(); return false;"></td></tr>
16 </table> 17 </table>
17 </form> 18 </form>
18 <p>Your submission will be ignored if any field is left blank. But your email address will not be displayed.</p> 19 <p>Your submission will be ignored if any field is left blank. But your email address will not be displayed.</p>
20 </div>
19 </blockquote> 21 </blockquote>
20 <!-- /tmpl_if --> 22 <!-- /tmpl_if -->