先说下我对form标签的理解
form 标签 有个属性是 enctype
它有几个值,有2个经常用
multipart/form-data
application/x-www-form-urlencoded
一段html
提交的时候设置不同的enctype
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>
<form method="post" enctype="application/x-www-form-urlencoded">
<div>
<input type="text" name="aa"/>
</div>
<div>
<input type="text" name="bb"/>
</div>
<div>
<input type="text" name="cc"/>
</div>
<div>
<input type="submit" value="提交"/>
</div>
</form>
</body>
</html>
multipart/form-data
form提交的时候
数据是隔开的 不会合并成一行 如图

application/x-www-form-urlencoded
form提交的时候
数据是会被合并在一起的 如图

我在做curl的时候
Content-Type: application/x-www-form-urlencoded
我这是成这样了 隔开的
为什么会这样了 如图

curl 是模拟post提交一个数据
提交的页面在
http://www.web-youhua.com/html/web-youhua-198603159.html
请求的地址是
http://www.web-youhua.com/include/comment_save.asp?comment_add=add
求解惑啊........
------解决方案--------------------
如果<input type="submit" name="submit" class="btn" value="发表评论" />
这个value值是英文的话……

------解决方案--------------------
这有什么区别吗?
两者都是合法的格式,一般对长内容分开处理
各种浏览器也有自己的处理方式
------解决方案--------------------
