thanks a million for your help
this bit is giving me a little trouble because it seems i've previously edited sub_display on my own
PerlFlunkie wrote:
C. In sub_display, add this:
Code:
<td><textarea wrap="virtual" name="Comment" value="" rows="6" cols="15" ></textarea></td>
</tr>
<tr><td>|; $comments = &create_captcha_form; #in db_utils.pl $comments = qq| </td></tr> <tr>
<td><font face="Verdana"><font size=-1>Click once:</font></font></td>
as you'll see from my code (below) the tricky bit for me is working out how to use the "|" bit in with my code (you're a perl genius so you'll know what i mean):
Code:
<script language="JavaScript">
<!--
function open_new_window()
{
new_window = open("","displayWindow","width=280,height=360,left=30,top=30");
// open new document
new_window.document.open();
new_window.document.write("<html><head><title>Leave Comment</title></head><body>");
new_window.document.write("<table BORDER=1 CELLPADDING=2 COLS=1 WIDTH='260' bordercolor='#C0C0C0' cellspacing='0'><tr>");
new_window.document.write("<td BGCOLOR='#C0C0C0'><b><font size=-1 face='Verdana'>Add your comment:</font></b></td></tr>");
new_window.document.write("<tr><td BGCOLOR='#FFFFFF'><font size=-1 face='Verdana'>");
new_window.document.write("Fill out the form below to add your rating and/or comment. Please note that all Ip's are logged and any abusers will be banned from posting.");
new_window.document.write("</font><form action='comments.cgi' method='POST'>");
new_window.document.write("<input type='HIDDEN' NAME='LID' VALUE='$rec{'ID'}'><input type='HIDDEN' NAME='Title' VALUE='$rec{'Title'}'>");
new_window.document.write("<input type='HIDDEN' NAME='function' VALUE='post_comment'>");
new_window.document.write("<table BORDER=0 CELLSPACING=0 CELLPADDING=0 COLS=2 WIDTH='100%'>");
new_window.document.write("<tr><td WIDTH='100'><font size=-1 face='Verdana'>Your name:</font></td>");
new_window.document.write("<td><input name='Contact Name' size='18' ></td></tr><tr>");
new_window.document.write("<td><font size=-1 face='Verdana'>Your email:</font></td>");
new_window.document.write("<td><input name='Email' size='18' ></td></tr><tr>");
new_window.document.write("<td><font size=-1 face='Verdana'>Your verdict:</font></td><td>");
new_window.document.write("<INPUT type='radio' name=Rating value = 2><IMG SRC='$db_images/up.gif' ALT='Great site'>");
new_window.document.write("<INPUT type='radio' name=Rating value = 1><IMG SRC='$db_images/okay.gif' ALT='Okay site'>");
new_window.document.write("<INPUT type='radio' name=Rating value = 0><IMG SRC='$db_images/down.gif' ALT='Terrible site'>");
new_window.document.write("</td></tr><tr><td><font size=-1 face='Verdana'>Your comment:</font></td>");
new_window.document.write("<td><textarea wrap='virtual' name='Comment' rows='6' cols='15' ></textarea></td>");
new_window.document.write("</tr><tr><td><font size=-1 face='Verdana'>Click once:</font></td>");
new_window.document.write("<td><input type='SUBMIT' value='Add Comment'></form></td></tr></table></td></tr></table>");
new_window.document.write("</body></html>");
// close the document
new_window.document.close();
}
// -->
</script>
any ideas - again thank you