admin管理员组文章数量:1134240
I am building a legacy widget where I need to access some checkbox values added to the DOM in runtime using client script. For example:
<input id="groups-2-523221" type="checkbox" value="523221" name="groups[]" />
<input id="groups-2-303393" type="checkbox" value="303393" name="groups[]" />
This is how it looks like:
In classic widget editor mode, I can grab the values successfully by iterating through the $_POST['groups']
array. However, $_POST['groups']
is inaccessible when placing the widget in the block widget editor.
I can understand that the reason is that form is not being "posted" physically. But I am unable to find a solution. What is the best way to accomplish this?
本文标签: widgetsPOST variable is inaccessible in block editor Is there any workaround
版权声明:本文标题:widgets - $_POST[] variable is inaccessible in block editor. Is there any workaround? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736831977a1954735.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论