Ben fonksiyonu nl2br ($ metin) kullandığınızda ben bunu istiyorum sonlarını görüntülemek yok ama onun yerine tatili olması nerede \ r gösterir. Ben onlar forma girilen ayrıntısını gösterir bir kullanıcı için bir onay sayfayı görüntülemek duyuyorum.
(the confirmation code in php)
// Confirm success with the user
echo '<p>You have successfully posted a ad.';
echo 'Here is your posting: <br /><br />';
echo 'Title: ' .$title. '<br />' ;
echo 'Price $: ' .$price.'<br />' ;
echo 'Location: ' .$city. ' ' .$state. '<br />' ;
echo '<b>Detail: </b>' .nl2br($detail). '<br />';
(The form users fill out)
<div class="fieldwrapper">
<label for="detail" class="styled">Detail:</label>
<div class="thefield">
<textarea id="detail" name="detail"><?php if (!empty($detail)) echo $detail; ?></textarea>
(The output)
This is a test\r\n\r\ntesting is good\r\n\r\nWhy doesn\'t it work?