みんな..
フォームを送信しようとしています..フォームとphpコードは同じファイルindex.phpにあります
if(isset($_POST['post_form'])) {
echo "ISSET";
$post_sender=$id;
$post_reciever=$id2;
$post_cont=$_POST['news_text'];
$post_cont=htmlentities($post_cont);
$post_cont=mysql_real_escape_string($post_cont);
$post_sql=mysql_query("INSERT INTO wall_posts (from, to, content, date) VALUES ('$post_sender','$post_reciever','$post_cont',now())") or die(mysql_error());
}else{
echo "NOT SET";
}
htmlフォーム
<form method='POST' action='index.php' enctype='multipart/form-data' id='news_form' name='post_form' >
<textarea id='news_text' name='news_text' >type here..........</textarea>
<input type='submit' id='wall_post_btn' name='wall_post_btn' value='submit'>
</form>
私の間違いはどこですか..???
コードに間違いはありません..ファイル自体が破損しています..新しいPHPファイルでテストを行ったばかりです...うまく動作します...みんなありがとう..