Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing @ Symbol when using $this->input->get()

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?

like image 886
Rey Libutan Avatar asked Jul 12 '26 10:07

Rey Libutan


1 Answers

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.

like image 79
Jobin Avatar answered Jul 15 '26 01:07

Jobin