When i type the text myself and click send it Goes to database but when i copy from anyweb and paste in the Text box so as To send.
The text is Not Going To Database...And suprisingly its Not giving any Error.Help please,i dont know whats wrong.
below is my Code
<?php
include"config.php";
$user=$_SESSION['user'];
$userid=$_SESSION['id'];
if(isset($_POST['submit'])){
$status=$_POST['status'];
$heading=$_POST['heading'];
if(!$status or !$heading){
echo"<font color=brown><b>Heading Or the post is Missing</br> Go back to try again</font>";
exit();
}
include"config.php";
$query = "INSERT INTO post SET post='$status',poster='$user',heading='$heading'" ;
$result=mysql_query($query);
$statusid= mysql_insert_id();
if($result) {
echo"Post published";
}else{
echo"Error occured";
}
?>