Here is the code... Please have a look ...
-
-
$jokeText = $_GET['jokeText'];
-
-
$query1 = "INSERT INTO joke (`joketext`) VALUES ('".$jokeText."')";
-
-
this is working but the carriage new lines or the cariage returns arnt showing when I display it in the page like
it simple as in this text area in which I am posting ...
the carriage returns are preserved ...
do i need to do something like
-
-
$jokeText = $_GET['jokeText'];
-
-
$jokeText = trim($jokeText );
-
$jokeText = stripslashes($jokeText );
-
$jokeText = htmlspecialchars($jokeText )
-
-
and then insert ... and when displayig .. just
-
-
nl2br($jokeText )
-
-
is it .... please help .. me confused...
-
-
$query1 = "INSERT INTO joke (`joketext`) VALUES ('".$jokeText."')";
-
-