|
楼主小白一个,自己百度写了个验证数组内容的文件,然后...本来想着用易语言post提交验证用的,没想到竟然抓包的时候抓不到post数据...这 这就尴尬了
源码
<?php
if( $_POST["f"] || $_POST["wd"] ){
$people = array("1", "2", "3", "4");
$name = $_POST['wd'];
if (in_array($name,$people)){
echo "<div class='position'>
<div class='innerWrapper'>
<div class='phoneNumber'>
<ins>验证成功!</ins>
</div>
</div>
</div>";
}else{
echo "<div class='position'>
<div class='innerWrapper'>
<div class='phoneNumber'>
<ins>验证失败!</ins>
</div>
</div>
</div>";
}
}
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta content="never" name="referrer" />
<title>
- -
</title>
<style>
CSS部分省略...
</style>
</head>
<body>
<div id="wrapper">
<div id="head">
<div class="head_wrapper">
<div class="s_form">
<div class="s_form_wrapper">
<div id="lg">
</div>
<form name="f" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" method="post">
<span class="bg s_ipt_wr">
<input id="kw" name="wd" class="s_ipt" value="" maxlength="255" autocomplete="off"/>
</span>
<span class="bg s_btn_wr">
<input type="submit" id="su" value="验 证" class="bg s_btn">
</span>
</form>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
地址:http://www.loftystance.win/pm.php
|
|