Mercurial > hg > chronicle
annotate 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 |
rev | line source |
---|---|
93 | 1 <!-- tmpl_if name='comments_enabled' --> |
2 <h3>Add A Comment</h3> | |
3 <blockquote> | |
150
4a882ba147e4
Updated to allow Ajax to be used for comment submission.
Steve Kemp <steve@steve.org.uk>
parents:
137
diff
changeset
|
4 <div id="output"> |
93 | 5 <form action="/cgi-bin/comments.cgi" method="post"> |
6 <input type="hidden" name="id" value="<!-- tmpl_var name='link' escape='html' -->"> | |
107 | 7 <input type="hidden" name="captcha" value=""> |
93 | 8 <table> |
9 <tr><td>Your Name</td> | |
10 <td><input type="text" size="55" name="name"></td></tr> | |
97 | 11 <tr><td>Your Email</td> |
12 <td><input type="text" size="55" name="mail"></td></tr> | |
93 | 13 <tr><td colspan="2">Your Comment<br /> |
14 <textarea name="body" rows="10" cols="60"> | |
137
1ae476191bec
Correctly close the tables we produce.
Steve Kemp <steve@steve.org.uk>
parents:
122
diff
changeset
|
15 </textarea></td></tr> |
150
4a882ba147e4
Updated to allow Ajax to be used for comment submission.
Steve Kemp <steve@steve.org.uk>
parents:
137
diff
changeset
|
16 <tr><td></td><td align="right"><input type="submit" name="submit" value="Post Comment" onClick="submitAjax(); return false;"></td></tr> |
93 | 17 </table> |
18 </form> | |
107 | 19 <p>Your submission will be ignored if any field is left blank. But your email address will not be displayed.</p> |
150
4a882ba147e4
Updated to allow Ajax to be used for comment submission.
Steve Kemp <steve@steve.org.uk>
parents:
137
diff
changeset
|
20 </div> |
93 | 21 </blockquote> |
22 <!-- /tmpl_if --> |