如何用标签以post方式提交一个form表单

2025-04-14 13:42:52
推荐回答(2个)
回答1:

    action="http://xxx.xxx.xx/xxxx" 
    method="post" 
    enctype="application/x-www-form-urlencoded"
>
    
    

enctype属性,有两个待选值:

application/x-www-form-urlencoded,无文件需要上传

multipart/form-data,有文件需要上传。

回答2:

form表单属性method="post"