
10-02-2007
|
| Administrator
Join Date: Jun 2007
Posts: 3,729
BRL$: 34,498.20 Thanks: 0
Thanked 6 Times in 6 Posts
Rep Power: 405 | | $_POST form problem I have a form that asks to enter one or more paragraphs The problem is when you submit it, if you have a line break, it adds "rn" instead of "/r/n" I am not cleaning the variable at all... here is a simple version of the script PHP: --------- if(!isset($_POST[submit])) { echo ""; echo "$getmain3[paragraph]"; //$getmain3[paragraph] is defined earlier in the code echo ""; echo ""; } else { echo $_POST['paragraph']; } --------- So for exapmle if i type in the following: "Line Beak Test" The output ($_POST['paragraph']) is equal to: "linernbreakrntest" with no slashes Thanks in advance for any help. To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts. | |
__________________ █ High Quality To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
█ Powerful To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
█ To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
To receive latest updates about BRL Forums, Subscribe to Latest Updates Thread.
| | | |