When javascript is added to php and you do not want to enter the title, you can jump out of the dialog box and re-edit it in ckeditor. In this way, I use an if statement in the pop-up message box. Then you want to implement a function: return to the home page after you press OK. However, after I have added the commented-out sentence, I directly add javascript to php. if I want to skip the dialog box without entering the title, I will return to ckeditor and re-edit it.
In this way, the message prompt box is displayed.
I used an if statement. Then you want to implement a function: return to the home page after you press OK. However, after I add the comment, the page will jump directly to the previous page, and no dialog box will pop up. What should I do?
Solution !!!
This is a. php:
Include ('Conn. php ');
$ Head = $ _ POST ['head'];
$ Content = $ _ POST ['content'];
?>
<Br/> a <br/>
*{
Font-size: 20px;/* set the "basic font size to 12px */
}
. Content {
Color = # 0066ff text-align = right border-bottom = dashed 1px gray
}
If ($ head! = NULL)
{
$ SQL = "insert into ckfinder values ('$ head',' $ content ')";
Mysql_query ($ SQL) or die (mysql_error ());
$ SQL = "select * from ckfinder ";
Echo"
Title:$ Head
";
Echo"
Date:". Date (" Y ").". ". date ('M').". ". date ('D ');
Echo"
";
Echo"
Content:
$ Content
Alert ('Enter the title! ') Script ";
Header ("Location: ck. php ");
}
?>
This is ck. php.
[Code = php]
<Br/> configure and call ckeditor and ckfinder <br/>
Script