相关疑难解决方法(0)

在PHP中检测请求类型(GET,POST,PUT或DELETE)

如何在PHP中检测使用了哪种请求类型(GET,POST,PUT或DELETE)?

php http request

880
推荐指数
10
解决办法
41万
查看次数

检查请求是否在PHP中回发

如何检查请求是否是PHP中的回复,以下是否可以?

if (isset($_POST["submit"]))
Run Code Online (Sandbox Code Playgroud)

其中submitname<input type="submit" />

php

16
推荐指数
1
解决办法
5万
查看次数

刷新或打开页面将空数据插入我的数据库!PHP,来自

我有一个有几个输入的表单.但是,当我只是加载页面时,一个空白项目被添加到数据库中. 即使我第一次进入网站,清除了所有的cookie,它仍然会向数据库添加空数据 为什么会这样?

<body>





<hr></hr>
<div
style="

margin-left:auto;
margin-right:auto;

width:600px;
"
>
<form method="post" action="admin.php" name="main" id="main">
Post to:
<select name="wheretopost" onchange="testValue(this);" name="select" id="select">
<option value="blog">Blog</option>
<option name='links' value="links">Links</option>
<option value="apparel">Apparel</option>
<option value="goods">Goods</option>
</select>
<div class="productKind" style="padding:10px;">
Mens<input type="radio" name="productKind" id="productKind"  value="Mens">
Womens<input type="radio" name="productKind" id="productKind"  value="Womens">
Kids<input type="radio" name="productKind" id="productKind"  value="Kids">
</div>
<div class="goodsKind" style="padding:10px;">
Stickers<input type="radio" name="goodsKind" id="goodsKind"  value="Stickers">
Incense<input type="radio" name="goodsKind" id="goodsKind"  value="Incense">
Patches<input type="radio" name="goodsKind" id="goodsKind"  value="Patches">
</div>
<br/>
Subject:<br/>
<input type="text" name="title" style="width:100%;" />
<br/> …
Run Code Online (Sandbox Code Playgroud)

html php mysql forms

0
推荐指数
1
解决办法
5652
查看次数

标签 统计

php ×3

forms ×1

html ×1

http ×1

mysql ×1

request ×1