Last active
December 17, 2015 12:39
-
-
Save phproberto/5611384 to your computer and use it in GitHub Desktop.
Retrieve JForm post data with JInput
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Required objects | |
$input = JFactory::getApplication()->input; | |
// Get the form data | |
$formData = new JRegistry($input->get('jform', '', 'array')); | |
// Get any data being able to use default values | |
$id = $formData->get('id', 0); | |
$name = $formData->get('name', null); | |
$email = $formData->get('email', null); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment