Guest User

Untitled

a guest
Jun 24th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. $jinput = JFactory::getApplication()->input;
  2. $data = $jinput->get('jform', 'default_value', 'filter');
  3.  
  4. $data = $this->input->post->get('jform', array(), 'array');
  5.  
  6. JHtml::_('jquery.framework'); // make sure jquery is loaded
  7. <script type="text/javascript">
  8. jQuery.post('index.php?option=com_mycomponent&task=component.save',
  9. jQuery( "#yourformid" ).serialize(), function(data,
  10. statustxt){ jQuery('#resultdiv').html=data; })
  11. </script>
  12.  
  13. print_r($_POST);
Add Comment
Please, Sign In to add comment