Forums

JREQUEST_ALLOWRAW still strips html tags

Leethyl 08 Jul, 2010
Hi Guys,

I am submitting the following code inside the Form Code -> onSubmit box using a DB connection on my form:

<?php
JRequest::setVar( "introtext", JRequest::getVar( "introtext", "
<table><tr><td></td></tr></table>", "post", "string"));
?>



However, the html entities are still getting stripped out even though the ChronoForm is using JREQUEST_ALLOWRAW on the Autogenerated_code tab.

According to this post, the HTML should not be filtered if JREQUEST_ALLOWRAW is used.
http://www.chronoengine.com/forums.html?cont=posts&f=2&t=17655

Why would this be?
GreyHead 08 Jul, 2010
Hi Leethyl,

Maybe because you aren't using JREQUEST_ALLOWRAW here?

Bob
Leethyl 08 Jul, 2010
Thanks Bob. I'm new to Joomla coding so I wasn't aware that I was able to use it in that piece of code. I put it in and it worked perfectly. Thank you.

Patience is a virtue😉
This topic is locked and no more replies can be posted.