문제

I'm migrating from codeigniter to Fat-Free (F3) and trying to get my head around the quirks.

Regarding the following form:

<form ACTION = "<?php echo $_SERVER['PHP_SELF'];?>" METHOD="POST">
  <input type="text" name="theirName" value="" required="required">
    ...

In standard PHP I get the POST value like this:

$name = $_POST['theirName'];

Or in codeignitor:

echo form_open('someclass/some_method_of_someclass');
$name = $this->input->post('name');

How do I get data from a form in a view in f3/fatfree?

도움이 되었습니까?

해결책

You can get it from the Hive:

$name = $f3->get('POST.name');
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top