Terry Cadd
11-23-2008, 04:52 AM
Hi,
I'm working on a form for visitors messages. I'd like to add a row of several images, that when clicked they add text in the message area where the cursor is located. In the example that I've included I'd just like to have the word "[This]" added when the visitor clicks the This.gif button image, etc.
I'd appreciate any help or examples that I can use to make this work in my Message Form.
Thanks,
Terry
<html>
<head>
<title>Message Form</title>
</head>
<body>
<form method="POST" action="/cgi-bin/cgiemail/websitename/cgidata.dat">
<p><img border="0" src="This.gif" width="20" height="20">
<img border="0" src="That.gif" width="20" height="20">
<p>Message:<br>
<textarea name="message" rows="10" cols="70" wrap></textarea>
<p><input type="submit" value="Submit"></p>
</form>
</body>
</html>
I'm working on a form for visitors messages. I'd like to add a row of several images, that when clicked they add text in the message area where the cursor is located. In the example that I've included I'd just like to have the word "[This]" added when the visitor clicks the This.gif button image, etc.
I'd appreciate any help or examples that I can use to make this work in my Message Form.
Thanks,
Terry
<html>
<head>
<title>Message Form</title>
</head>
<body>
<form method="POST" action="/cgi-bin/cgiemail/websitename/cgidata.dat">
<p><img border="0" src="This.gif" width="20" height="20">
<img border="0" src="That.gif" width="20" height="20">
<p>Message:<br>
<textarea name="message" rows="10" cols="70" wrap></textarea>
<p><input type="submit" value="Submit"></p>
</form>
</body>
</html>