/r/n New Problem

Status
Not open for further replies.

Kristopher

Photographer
Dec 25, 2010
802
66
Here's my test news

Code:
TEST
\r\n
 
\r\n
 
\r\n
 
\r\n
TEST
\r\n
 
\r\n
 
\r\n
TEST
\r\n
 
\r\n
 
\r\n
TEST
What's wrong: when my staff or I press enter to start a new paragraph on our news it always has /r/n on every enter or w.e..
It's really annoying my staff member's cause it makes their new's look like shit.. Anyway how to fix.. besides going into my db n removing myself..
 

Meds

New Member
Dec 17, 2011
28
0
Where should i replace / add it this :

<?php
if(mysql_result(mysql_query("SELECT rank FROM users WHERE id = '" . $_SESSION['user']['id'] . "'"), 0) >= 6)
{
if(isset($_GET["done"]))
{
$get = filter($_GET["done"]);
if($get == true)
{
echo '<h3>Article Ajouter.</h3>';
exit;
}
}
if(isset($_POST["step1"]))
{
if($_POST["title"] == NULL || $_POST["shortstory"] == NULL || $_POST["longstory"] == NULL)
{
echo "<h2>Merci de remplire toutes les cases!</h2>";
}
else
{
$_SESSION["title"] = filter($_POST["title"]);
$_SESSION["shortstory"] = filter($_POST["shortstory"]);
$_SESSION["longstory"] = mysql_real_escape_string($_POST["longstory"]);

header("Location: ".$_CONFIG['hotel']['url']."/ase/news2");
exit;
}

}
else
{ ?>



I Have That Problem To =S
 

Heaplink

Developer & Designer
Nov 9, 2011
510
173
Where should i replace / add it this :

I Have That Problem To =S


You do not need that one, the only one you need is the second one that got posted for news2.php

So to fix the HTML parsing "bug" just remove filter(); method from $_POST["longstory"]. such like:

Code:
filter($_POST["longstory"])
to
Code:
$_POST["longstory"]

from news2.php inside the mysql_query.
 
Status
Not open for further replies.

Users who are viewing this thread

Top