textarea value

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
shiranwas
Forum Commoner
Posts: 53
Joined: Fri Jul 07, 2006 10:41 pm
Location: Colombo

textarea value

Post by shiranwas »

Pimptastic | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


hi,
i have a textarea control in my html page

Code: Select all

<textarea name="txtMessage"   value="<? print $message ?>" style="color: #000; background: #EFEFEF; border: 2px solid #781351; width:540px; height:150px" ></textarea>
when i put the variable in value i got from a php function it does not show , i am new to php, i feel that textarea does not have a value property if am correct how to fiex this problem or any otherway


shiran


Pimptastic | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

Code: Select all

<textarea name="txtMessage" style="color: #000; background: #EFEFEF; border: 2px solid #781351; width:540px; height:150px" ><? print $message ?></textarea>
User avatar
shiranwas
Forum Commoner
Posts: 53
Joined: Fri Jul 07, 2006 10:41 pm
Location: Colombo

Post by shiranwas »

thanks alot (Pimptastic)
Post Reply