IAs we know that we can get valueretrieve values of some specific field by usingall the fields if they have names like name="jform[something]"
and we can use the code:
$input$jinput = JFactory::getApplication()->input;
$value$formData = $input->get('someName', '', 'post');
and set it as the body of letter by using:
$mailer =new JFactory::getMailer();
...
$mailer->setBodyJRegistry($value);
But if I have the form like:
<form name="myForm">
<input type="radio" name="radioName" value="Value1">
<input type="radio" name="radioName" value="Value2">
<input type="radio" name="radioName" value="Value3">
<input type="checkbox" name="checkboxName1" value="Value4">
<input type="checkbox" name="checkboxName2" value="Value5">
<input type="text" name="textName">
<input type="submit" name="submitName" value="Send">
</form>
then how can I get values of all the filled fields of the form as an array?
I found the code:
$formData = $input$jinput->get('jform', '', 'array'));
It works if allBut is there some way to do the fieldssame if we have names likeform with some name for example name="jform[someName]"<form name="myForm">
and I get the resultfileds with names like
{"someName1":"someValue1","someName2":"someValue2"}
Can I achieve the same result but only using the name of my form name="something"
i.e. name="myForm"
without jfrom[]jform[]
?
Thanks in advance
Joomla 3.5.1