Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在视图中输入了一个带有两个选项的选择部分。我想获得选定的值,然后根据输入的值,我会得到一个特定的操作。怎么做?
对于包含输入变量 'foo' 的 POSTed 表单,
$foo = $request->request->get('foo');