Is it a good practice to use an empty URL for a HTML form's action attribute? (action=“”)

后端 未结 11 2204
花落未央
花落未央 2020-11-22 01:50

I am wondering if anyone can give a \"best practices\" response to using blank HTML form actions to post back to the current page.

There is a post asking what a blan

11条回答
  •  故里飘歌
    2020-11-22 02:14

    When you put empty action then some security filtration consider it malicious or phishing. Hence they can block your page. So its advisable not to keep action= blank.

提交回复
热议问题