Copy link to clipboard
Copied
I have written a form and the subsequent php page. However, when the text moves from the html page it doesn't wrap in the php page despite the echo command within the code.
Copy link to clipboard
Copied
dmaughan23 wrote:
What steps should you take to avoid the delema?
Apply the PHP function nl2br, example:
<?php echo nl2br($_POST["txtInput2"]);?>
Copy link to clipboard
Copied
Thanks for the answer, but it is still not working. It stills doesn't wrap. Any other helpful suggestions?
This is my code with your hint included.
Copy link to clipboard
Copied
dmaughan23 wrote:
Thanks for the answer, but it is still not working. It stills doesn't wrap.
Out of sheer curiosity I made myself 2 pages which use the very same code you provided and applied the nl2br function -- guess what: it does indeed wrap ![]()
On a side note: it´s unrelated to your issue, but document (and other file) names such as "expert page ethics 1.php" can be problematic with Linux/Unix hostings due to the white spaces -- better replace them with underscores for instance, example:
expert_page_ethics_1.php
Copy link to clipboard
Copied
Thanks for the side note. As you can probably tell I'm somewhat of a novice. The wrap problem I'll have to play with it a bit.
Copy link to clipboard
Copied
I was able to make the coding work. Thank you
Copy link to clipboard
Copied
dmaughan23 wrote:
I was able to make the coding work.
Can you explain what you did to make it work, so that other users may get a clue when struggeling with similar issues ?
Copy link to clipboard
Copied
It is a little embarrassing. My coding was working fine, as well as yours. To test my wrap I was just holding one key down and letting it repeat.
Using your coding nl2br I was on the php website you provided and the "line break" finally click and I realized I was not giving my code a chance to find the line break.![]()
Copy link to clipboard
Copied
If I started talking about the embarassing PHP coding moments I had, I could go on and on ![]()
Thanks for sharing, much appreciated !
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more