国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Warum kann ich die ID- und Alert-Anweisungen nicht finden, wenn ich eine Nachricht mit notepid++ sende?
微蕤輕涼
微蕤輕涼 2018-06-10 22:43:54
0
3
1338

<?php

include ("conn.php");

$id=$_POST['id'];

$user=$_POST['user'];

$title=$_POST[ 'title'];

$content=$_POST['content'];

if($_POST['submit']){

$sql="insert into message(id,user,title,content,lastdate )VALUES('','$user','$title','$content',now())";

mysql_query($sql);

echo "<seript>alert('提交成功') ;location.href='add.html';</seript>";

}

?>


微蕤輕涼
微蕤輕涼

Antworte allen(3)
浮云

其他的我不好奇,就是好奇你那個(gè)$id,是怎么來(lái)的,提交過(guò)來(lái)的$_POST數(shù)組里面,有一項(xiàng)id嗎?貌似我輸出一下,沒(méi)看到

亞連

不是<seript>,是<script>

亞連

echo "<seript>alert('提交成功');location.href='add.html';</seript>";你仔細(xì)看看這個(gè)語(yǔ)句有什么錯(cuò)誤?

Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage