insert chars into textbox

dont know if this is the correct topic area

id like a text box in a form to have a row of buttons underneath it
when u click one of these buttons then a character gets inserted into the text box

say i have a text box and underneath i have
[1] [2] [3] etc....
(ie a button with 1 on it, a button with 2 on it etc

then say i have typed "hello" into the text box and i click the button with 1 on it , then "hello1" appears in the text box and i can go and click submit and "hello1" will be sent to another script.....

is this a javasript kinda question?
if so does anyone know the code to do it? or even better is it a perl issue?


thanks
boofullsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

guadalupeCommented:
It javscript, heres the answer but next time put it in the Javascript section as I shouldn't really answer it here:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>


<SCRIPT LANGUAGE="JavaScript">
<!--//
function change(object,text)
{
      object.value = object.value + text;

}
//-->
</SCRIPT>



</HEAD>

<BODY BGCOLOR="#FFFFFF">


<FORM METHOD=POST ACTION="" name="form1">


<INPUT TYPE="text" NAME="text1" value="">

<input type="button" value="Add text" onClick="change(this.form.text1,'text_to_add')">

<INPUT TYPE="text" NAME="text2" value="">

<input type="button" value="Add text" onClick="change(this.form.text2,'text_to_add2')">
</FORM>


</BODY>
</HTML>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Perl

From novice to tech pro — start learning today.