Jump to content

Archived

This topic is now archived and is closed to further replies.

brown2005

help with textarea

Recommended Posts

hi,

i have a text field where people will write there comments...

i want to be able to say write text like,

[b]hello hello

hello hello[/b]

keeping spaces in it....

which form field type should i use input or textarea or neither?

and how do i keep it with spaces..

Share this post


Link to post
Share on other sites
textarea... and when you display the text from the database, wrap it in the function nl2br().

Share this post


Link to post
Share on other sites
but how do i insert it into the database, cause it puts it together if i just have...

$comment  = $_POST['comment'];

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.