Jump to content

Recommended Posts

It's been a while :o

 

alright, i have a page (index.php) that POSTs data to another page (viewhand.php). Here is an example of what the user would POST to viewhand.php:

 

Game #10117033922:  (5) - 
2007/05/26 - 16:54:47 (ET)
Button
Seat 1: XXXXXXX ($2 in chips) 
Seat 3: XXXXXXX ($16.40 in chips) 
Seat 6: XXXXX($17.75 in chips) 
XXXXX: posts small blind $0.10
Graffin13: posts big blind $0.25
*** HOLE CARDS ***
Dealt to Graffin13 [7s Tc]
toze2: calls $0.25
cdsaz: calls $0.15
Graffin13: checks 
*** FLOP *** [Td Th 6d]
cdsaz: checks 
Graffin13: checks 
toze2: bets $0.25
cdsaz: folds 
Graffin13: calls $0.25
*** TURN *** [Td Th 6d] [8d]
Graffin13: checks 
toze2: bets $1
Graffin13: raises $0.50 to $1.50 and is all-in
toze2: calls $0.50
*** RIVER *** [Td Th 6d 8d] [5h]
*** SHOW DOWN ***
Graffin13: shows [7s Tc] (three of a kind, Tens)
toze2: shows [Ts 9d] (three of a kind, Tens - Nine kicker)
toze2 collected $4.05 from pot
*** SUMMARY ***
Total pot $4.25 | Rake $0.20 
Board [Td Th 6d 8d 5h]
Seat 1: Graffin13 (big blind) showed [7s Tc] and lost with three of a 
kind, Tens
Seat 3: toze2 (button) showed [Ts 9d] and won ($4.05) with three of a 
kind, Tens
Seat 6: cdsaz (small blind) folded on the Flop

 

How can i keep the breaks after each line to be echo'd to the next page?

 

for example, without the line breaks it would become:

Game #10117033922:  (5) - 2007/05/26 - 16:54:47 (ET) Button

 

but i want it to remain:

Game #10117033922:  (5) - 
2007/05/26 - 16:54:47 (ET)
Button

 

Thanks, and if you don't understand what I mean, ill try to clear it up some more.

Link to comment
https://forums.phpfreaks.com/topic/53105-solved-modifying-text/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.