I have included a hidden field in my form with this code:
<input type="hidden" name="reporter" value="<?php echo $this->item->reportid; ?>" />
but I can't access it in my view.html.php using this code:
$sample = $_POST['reporter'];
Is there something I missed? Does this have something to do with Joomla?
UPDATE #1: I used this code below regarding JInput but still I can't get the value for reporter.
$input = JFactory::getApplication()->input; $test = $input->get('reporter');