•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 455,985 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,759 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 353 | Replies: 2
![]() |
•
•
Join Date: Dec 2007
Posts: 4
Reputation:
Rep Power: 0
Solved Threads: 0
Hello,
I am trying to figure out how to have the data pulled from a input text box field so it displays as columns.
Right now, when I hit enter to add a new line in the text box and look at it where it suppose to be displayed, it is all on one line.
Example right now it is:
example1 example2 example3
I want it to display as
example 1
example 2
example 3
Anyone know how to achieve this in my php code?
I am trying to figure out how to have the data pulled from a input text box field so it displays as columns.
Right now, when I hit enter to add a new line in the text box and look at it where it suppose to be displayed, it is all on one line.
Example right now it is:
example1 example2 example3
I want it to display as
example 1
example 2
example 3
Anyone know how to achieve this in my php code?
•
•
Join Date: Oct 2006
Location: the Netherlands
Posts: 1,818
Reputation:
Rep Power: 11
Solved Threads: 189
You could look at the strtok() function. This function takes a string and a character as arguments, splitting the string when it encounters the char.
Niek
[edit]
Here's a link with the exact program you want
Niek
[edit]
Here's a link with the exact program you want
Last edited by niek_e : Dec 3rd, 2007 at 6:04 am. Reason: added link
Want better/more replies to your questions? Wrap your code in [code] [/code] tags!
do NOT pm me for help, in the best case, you'll get ignored
do NOT pm me for help, in the best case, you'll get ignored
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- writing from bottom up in rich text box (VB.NET)
- pass the value to the text box (JavaScript / DHTML / AJAX)
- a default value in a text box (Visual Basic 4 / 5 / 6)
- Text Box Newbie help (Visual Basic 4 / 5 / 6)
- Text box question (C#)
- Text box population from DBgrid. HELP!! (Visual Basic 4 / 5 / 6)
- text is being written in text box (Web Browsers)
- Help with text box height (HTML and CSS)
- Cannot enter any text in a IE text-box (Viruses, Spyware and other Nasties)
Other Threads in the PHP Forum
- Previous Thread: SQL query for select
- Next Thread: Email (Secrect Msg)



Linear Mode