Is there a way to get all the POST or GET vars at once using JInput? Something like this, only using the newer syntax:

$post = JRequest::get('post');

1 Answer 1


Yes, you can achieve this by using JInput.

$app = JFactory::getApplication();
$input = $app->input;
$jform = $input->get('jform', array(), 'ARRAY'); 
//$jform will show all the data of your form

Please refer this document for more details:


  • @Ruchika-- thanks. Will that get either the GET or POST vars? or would you use $input->post('jform', array(), 'ARRAY') to get the POST payload?
    – user101289
    Mar 5, 2016 at 3:19
  • it will get all the vars. Also, please check other answers as well as the question has been marked duplicate and already has answers else modify your question as it is stated
    – Liz.
    Mar 5, 2016 at 6:41

Not the answer you're looking for? Browse other questions tagged or ask your own question.