Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Textarea "enter" to <BR>
Index -> Programming, PHP -> PHP Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
JSBN




PostPosted: Thu Jan 12, 2006 11:17 pm   Post subject: Textarea "enter" to <BR>

basically, what i want is that when someone enters
code:
Hello
how are you?

i get a string:
code:
Hello<BR>how are you?


thanks, JSBN
Sponsor
Sponsor
Sponsor
sponsor
JSBN




PostPosted: Thu Jan 12, 2006 11:31 pm   Post subject: (No subject)

nm, i got it
Jeevan25




PostPosted: Sat Jan 14, 2006 1:32 am   Post subject: (No subject)

to make the site according to w3, use <br /> instead of <br> br breaks the line so the text after it is shown in a new line.
md




PostPosted: Sat Jan 14, 2006 2:23 am   Post subject: (No subject)

Jeevan25 wrote:
to make the site according to w3, use <br /> instead of <br> br breaks the line so the text after it is shown in a new line.

That is slightly depended on what doc-type you are using, but yes for good measure use <br />. That way when you decide to say move to the xhtml doc-type things are already mostly correct Wink
Jeevan25




PostPosted: Sat Jan 14, 2006 11:01 am   Post subject: (No subject)

w3 is no recommeding <br /> , xhtml due to broken tags in html. in order to pass w3 validation [which by the way this site doesn't have] the site should use xhtml. xhtml is easier to read than html.
octopi




PostPosted: Sat Jan 14, 2006 2:22 pm   Post subject: (No subject)

Hey JSBN, would you mind posting your solution so that others on the board can learn.

Thanks.
Display posts from previous:   
   Index -> Programming, PHP -> PHP Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: