Forum Moderators: coopster

Message Too Old, No Replies

echo in <text area>

cannot figure it out

         

henry0

9:13 pm on Dec 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well I am not even sure it is posssible as I intend to:

<textarea cols=80 rows=1 name=yes value="<? echo $yes;?>"></textarea>

how can that line be working and echo the value?

if within input type text such as:
<input type=text name=yes value="<? echo $yes;?>">

it works fine

but I need to enlarge the "text area" for longer text

thank you

regards

figment88

9:26 pm on Dec 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Because the HTML tag works differently.

text displayed in a textarea goes between the tags not set as a value.

try:

<textarea cols=80 rows=1 name=yes><? echo $yes;?></textarea>

henry0

9:35 pm on Dec 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thank you
works fine, (I have been pulling my hairs on that one!)

regards