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"> ...
</form>
In standard PHP I get the POST value like this:
$name = $_POST['theirName'];how I getting data values from form in Fat-Free framework?
lik this?
$name=$f3->get('POST.theirName');
I try like this in fat-free frame,but it doesn't recevie any value.
<form action="/process" method="post">
<input type="text" id="data" name="data">
<button type="submit">Submit</button>
</form>
$f3->route('POST /process',
function($f3){
}
);
$f3->route('POST /process',
function($f3){
echo $f3->get('POST.data');
}
);
$f3->set('DEBUG',3);
--
You received this message because you are subscribed to a topic in the Google Groups "Fat-Free Framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/f3-framework/lA00_n_htQc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to f3-framework...@googlegroups.com.
To post to this group, send email to f3-fra...@googlegroups.com.
Visit this group at http://groups.google.com/group/f3-framework.
For more options, visit https://groups.google.com/d/optout.