获取在PHP中提交按钮值 [英] Get submit button value in PHP
本文介绍了获取在PHP中提交按钮值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想测试我的按钮可以从日期的文本框的当前值?我提交按钮的价值,但我找不到按钮的任何code GET名。所以,我应该怎么称呼我能看到的价值?
$ form_button_layout ='<按钮类=BTNNAME =OPRFVALUE =视图 - 日志类型=提交>查看< /按钮>'; <窗体类=以及表单内联方法=后< = $ form_action_override; ?>>
解决方案
如果您想获得的OPRF'的值之上,则:
$值= $ _ POST ['obrf'];
应该这样做在PHP。
I would like to test my button can get the current value from the date's textbox? I got the value of submit button but I couldn't find any code get name of the button. So what should I call I'm able to view the value?
$form_button_layout = '<button class="btn" name="oprf" value="view-log" type="submit">View</button>';
<form class="well form-inline" method="post"<?= $form_action_override; ?>>
解决方案
If you'd like to get the value of 'oprf' above, then:
$value = $_POST['obrf'];
Should do it in php.
这篇关于获取在PHP中提交按钮值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文