I am currently practicing making a joomla MVC component and so far everything works well except that when I submit a form with an element like this
<input type="text" value="" name="email" placeholder="[email protected]" />
with a value like below for example
[email protected]
All I am getting in the JControllerLegacy is emaildomain.com. Notice the missing @.
I am getting the form value by
$email= $this->input->get('email');
Is this a feature of Joomla that I am not aware of?
Try this, the said issue is because of Joomla filter options.
You can try something like this,
$email= $this->input->get('email',null,'string'); //or HTML for allow html tags
For older Joomla versions check this
Hope it will work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With