sniped22 Posted May 26, 2007 Share Posted May 26, 2007 It's been a while 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 More sharing options...
AndyB Posted May 26, 2007 Share Posted May 26, 2007 use nl2br() on the text .... http://ca.php.net/manual/en/function.nl2br.php Link to comment https://forums.phpfreaks.com/topic/53105-solved-modifying-text/#findComment-262311 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.