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";

}
?>

If your going to ask a question, please use clear English that we can all understand, and add some more detail. Explain exactly how to reproduce the problem. Then we will be able to help you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.