[SOLVED] Data from TextField.

Hi!

Can someone tell me how i can get one value from a textfield after submit data?

If you are using a model, then just:


$model->attributes = $_POST['YourForm'];

Then you can access the model attributes like normal:


$model->text;

Otherwise, you can also use


$_POST['YourForm']['textfield']

Thanks! It Works!