开发者

auto-click the SUBMIT button?

开发者 https://www.devze.com 2022-12-26 14:56 出处:网络
If the user manually clicks the \'submit\' button, i use this code: if (isset(开发者_开发百科$_POST[\'submit_findall\'])) {...

If the user manually clicks the 'submit' button, i use this code:

if (isset(开发者_开发百科$_POST['submit_findall'])) { ...

But what what code should I use if I want to activate this from within a script ?

Thanks!


if($_SERVER['REQUEST_METHOD']=='POST') is bullet proof indicator of the POST form submit


Change:

if (isset($_POST['submit_findall'])) { 
    // Something
}

to:

// Something
0

精彩评论

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