摘要:
<body> <?php $name = $_POST['name']; echo $name; $gender = $_POST['gender']; echo $gender; ?><form method="post" action="<?php echo htmlspecialchars($ 阅读全文
posted @ 2019-01-21 20:22
凯宾斯基
阅读(242)
评论(0)
推荐(0)
摘要:
1. empty() #判断变量是否为空 例子 if (empty($name)) { echo '变量为空'; } else { echo "不为空" } 2.isset() #判断变量又没被定义过 说明 https://zhidao.baidu.com/question/919242444078 阅读全文
posted @ 2019-01-21 16:11
凯宾斯基
阅读(168)
评论(0)
推荐(0)
摘要:
<!DOCTYPE HTML> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><html><head></head><body> <?php// define variables and set to emp 阅读全文
posted @ 2019-01-21 15:53
凯宾斯基
阅读(629)
评论(0)
推荐(0)
摘要:
1. $_SERVER['HTTP_ACCEPT'] 返回来自当前请求的请求头。 场景,校验提交的数据前,看是不是 post请求 if ($_SERVER["REQUEST_METHOD"] == "POST") { echo "请求方式是post" } 阅读全文
posted @ 2019-01-21 14:45
凯宾斯基
阅读(185)
评论(0)
推荐(0)
摘要:
<html> <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head> <body> <form method="post" action="<?php echo htmlspecialcha 阅读全文
posted @ 2019-01-21 11:52
凯宾斯基
阅读(289)
评论(0)
推荐(0)