Click to See Complete Forum and Search --> : little story, please help!


mrhunt
05-05-2003, 04:26 PM
oke I need this:

3 form fields, first called: 1 second :2 third: 3 (d'uh)


Then a text which will be generated in a textearea:

Hey "1" I'm here with: "2", How is "3" doing??

-----------------------------------------------------

That's just an exsample, so you get an idea fo what I need. Please help me cause I searched all the web and couldn't find it. I would realy like it!


Thanks!

khalidali63
05-05-2003, 06:01 PM
this is how you get the values from the text fields and put it in the textarea

var val1 = document.formName.textField_1.value;


var val2 = document.formName.textField_1.value;


var val3 = document.formName.textField_1.value;

//you can form a string with all 3 //values concatenated

var message = "Hey "+val1+" I'm here with: "+val2+", How is "+val3+" doing??"

//now put the smessage in textarea


document.formName.textareaname.value = message;

mrhunt
05-06-2003, 03:51 AM
Tank you verry much Khalid,

But Should I just call the forms Val1 Val2 etc..?, I'm sorry, almost never use javascript.

Hunt

mrhunt
05-06-2003, 12:14 PM
Could you (or neone else) put it in a javascript code?
Thanks in advance!

~ Hunt

mrhunt
05-08-2003, 09:50 AM
Just wanted to say it's worked out with my script problem. You realy should see Bombasta (http://www.bombasta.tk)
>> Services >> Shoutbox greater, Worth to visit!