Home  >  Article  >  Backend Development  >  Call php program in JavaScript_PHP tutorial

Call php program in JavaScript_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:47:18952browse

Copy code The code is as follows:






Please Click
< ;/body>


Copy code The code is as follows:

if($_GET["action"]=="ok")
{
echo "I'm OK!";
}
else
{
echo "I'm not OK!";
}
?>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/319947.htmlTechArticleCopy the code as follows: SCRIPT Language = "JavaScript" function func() { if(confirm("Are you OK with this?")) { this.location = "ok.php?action=ok"; } else { this.location = "ok....
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn