开发者

Does Dreamweaver add enctype="text/plain" to forms automatically?

开发者 https://www.devze.com 2023-01-07 05:21 出处:网络
I have some forms that post to a CGI script.I set them up and they work perfectly on all browsers.Then I leav开发者_运维技巧e them alone.

I have some forms that post to a CGI script. I set them up and they work perfectly on all browsers. Then I leav开发者_运维技巧e them alone.

A few days later, after designers have updated the page, the forms no longer work and a mysterious

enctype="text/plain"

has been added to the form tag.

I didn't put it there, and the designers didn't put it there ( intentionally ). There is no source control, and I don't use Dreamweaver. I can't explain where it came from.

Does Dreamweaver add this attribute automatically?


My copy of Dreamweaver CS3 doesn't, but I wouldn't be surprised if it were possible, depending on the settings. Dreamweaver has an option for setting the form's enctype attribute in design mode. Perhaps it was changed by accident?


The answer to my question is "no".

It turns out that it was not Dreamweaver after all. Someone had created a template where enctype="text/plain" and was reusing it.

Dreamweaver CS3 only gives these 2 choices for enctype:

application/x-www-form-urlencoded

multipart/form-data.

Human error not software error ( this time ).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号