PDA

View Full Version : Textareas in PHP


me_great
03-30-2008, 06:26 PM
Hi,

I am trying to display the concatenated values of 3 textboxes into a textarea on the click of a button.

The problem is, I am able to do it for the 1st time, when I try to add in the second entry, it deletes the previous one. Can you help me in this.

I want to display as many values I want by clicking the button (showing all of them until I save).

Any help would be appreciated.

Thanks in advance.

GO ILLINI
03-30-2008, 08:24 PM
1) Show us your code/ an example page
2) Are you sure your not talking about Javascript?
3) Welcome!

-Adam

jaap
03-30-2008, 10:47 PM
You probably name all your textboxes the same. Therefore, the values get overwritten.
- Give all your textboxes a unique name, or
- name 'em all in an array: myTextBox[]. That way, all values get pushed into an array automatically. Access them like you access a normal array.


Good luck!