Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Easy Date   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 02-14-2004, 08:45 AM   #1 (permalink)
Inactive
 
Leader of Men's Avatar
 
Join Date: 10-12-03
Location: Minnesota, USA
Posts: 2,207
iTrader: 0 / 0%
Latest Blog:
None

Leader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really nice
Send a message via AIM to Leader of Men Send a message via MSN to Leader of Men Send a message via Yahoo to Leader of Men
New line issues...

I have a form that contains a text area, much like the one I'm typing in now.

I changed it to an <input type etc. etc.> but I think it would be a lot better if it were a bigger box.

The problem is, if I make it a bigger box, and people hit enter

like this

It goes down a couple lines but doesn't create the <br>, so when I want to fwrite it in PHP I want it to say <br> instead of the line drop, however, it CANT still have the extra line. The entire fwrite needs to belong on the same line.

So if I wanted to post this:
Quote:
I'm a happy
Butterfly
I would want the code to be like this:
[code:1:a9d823970b]I'm a happy <br>butterfly[/code:1:a9d823970b]

Not:
[code:1:a9d823970b]I'm a happy<br>
butterfly.[/code:1:a9d823970b]

Not this either:
[code:1:a9d823970b]I'm a happy
Butterfly[/code:1:a9d823970b]
Leader of Men is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 02-14-2004, 08:46 AM   #2 (permalink)
Possible Terrorist
 
kwvarga's Avatar
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
iTrader: 0 / 0%
Latest Blog:
A+ Certification

kwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web pro
Send a message via AIM to kwvarga
str_replace($string,"\n","<br>\n";
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
kwvarga is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-14-2004, 09:01 AM   #3 (permalink)
Inactive
 
Leader of Men's Avatar
 
Join Date: 10-12-03
Location: Minnesota, USA
Posts: 2,207
iTrader: 0 / 0%
Latest Blog:
None

Leader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really nice
Send a message via AIM to Leader of Men Send a message via MSN to Leader of Men Send a message via Yahoo to Leader of Men
I fixed it with a combination of that method and nl2br.

Sometimes I just dont think
Leader of Men is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
One Line Tip mwaraitch Marketing Forum 0 11-10-2007 11:44 AM
On line..... South Coding Forum 6 06-03-2004 09:56 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 04:39 AM.
© Copyright 2008 V7 Inc