Joke Collection Website - Public benefit messages - The information in php is published successfully and jumps out of the JS prompt box code.
The information in php is published successfully and jumps out of the JS prompt box code.
PHP pop-up JS prompt box sample code:
& lt? Server-side programming language (abbreviation of professional hypertext preprocessor)
header(“Content-type:text/html; charset = utf-8;” );
$ conn = MySQL _ connect(“localhost”、“root”、“root”);
If (! $ conn ){
Die ("Database connection error. MySQL _ error());
}
MySQL _ select _ db(“test“);
$ SQL =“insert? Become? Table (id, name) value (1,' chinawinxp') ";
$ int = MySQL _ query($ SQL);
//Information added or published successfully.
if($ int ){
$msg= "Information released successfully! “;
Echo? ("< script? type =‘text/JavaScript‘& gt);
Echo? ("alert" ("{$ msg}"); “);
//url jump
Echo? (“location . href =‘test . PHP‘; “);
Echo? (“& lt/script >);
}
& gt operation effect:
- Related articles
- Konka A6 can't receive the short message of 10086, but how can it be normal to send and receive short messages?
- Why not Huawei Glory v 10?
- Where can I inquire about taxi transfer information in Changsha?
- How to restore Weifeng to delete iphone SMS? com
- How to send short messages to customers when beauty salons adjust their working hours
- How to operate Sichuan social security annual review on mobile phone?
- Send text messages to your girlfriend every day.
- An essay on maternal love
- Why does the imessage status of iphone always wait for activation? How to solve it?
- Enrollment channels of education and training institutions