hello i created a form in front via a plugin in my tmpl i create a file value_form.php (compatible with the component)
<form id="contact-form-'.$formid.'" method="POST" class="form-validate" enctype="multipart/form-data">
<fieldset>
'.$titleformD.'
'.$fields_display.'
'.$consent_field.'
'.$captcha_html.'
<div class="form-group control-group submit-button">
<input type="submit" name="submit" value="'.JText::_('FLEXI_FIELD_EMAIL_SUBMIT_LABEL_VALUE').'" class="'.$submit_class.'">
</div>
<input type="hidden" name="emailtask" value="plg.email.submit" />
<input type="hidden" name="formid" value="'.$formid.'" />
<input type="hidden" name="emailauthor" value="'.$addr.'" />
<input type="hidden" name="itemid" value="'.$item->id.'" />
<input type="hidden" name="itemtitle" value="'.$item->title.'" />
<input type="hidden" name="itemalias" value="'.$item->alias.'" />
<input type="hidden" name="itemauthor" value="'.$item->author.'" />
<input type="hidden" name="catid" value="'.$item->catid.'" />
<input type="hidden" name="return" value="" />
'.JHtml::_("form.token").'
</fieldset>
</form>
and i need to get the value in my 'helper' email.php i do this
$id = $jinput->post->get('formid', '', '');
$datas = $jinput->post->get($id, array(), 'array');
and to get value
$fromemail = $datas['emailfrom'];
but this value is already empty i have value of my form if field aren't hidden type ....
thanks for any help
id
attribute. Why not try to access the hidden input fields' values byname
attribute?