I'm not using the wizard for my html. When using php in my htmlcode block any time I use a backslash '\' to escape a quote symbol or make a line ending, it gets stripped out when I save it. I can't use the '#' solution offered elsewhere for regex delimiters or what to do?
Forums
backslashes are stripped from htmlcode
Hi gemlog,
Which version of ChronoForms are you using? You can find the version from Site Admin | Extensions | Install/Uninstall | Components in Joomla! 1.5 or Site Admin | Extensions | Extension Manager | Manage in Joomla! 1.6/1.7/2.5.
Exactly what code (as an example) are you trying to put in which box? There may be another way around it. I've never hit a problem with \ . . . but I rarely use it.
Bob
Which version of ChronoForms are you using? You can find the version from Site Admin | Extensions | Install/Uninstall | Components in Joomla! 1.5 or Site Admin | Extensions | Extension Manager | Manage in Joomla! 1.6/1.7/2.5.
Exactly what code (as an example) are you trying to put in which box? There may be another way around it. I've never hit a problem with \ . . . but I rarely use it.
Bob
I'm using 4.0 RC3.11.
Any '\' I use in the htmlcode box get stripped.
Pick any form:
http://example.com/administrator/index.php?option=com_chronoforms#edit
and then choose the 'Code' tab between 'General' and 'JS Validation'.
Now, with 'Form Type' = 'Custom' type some stuff and include some php between normal php tags. Then add anything that includes the '\' character -- even something in a php comment e.g.
and all the '\' are stripped on save. Those are two chars I do often use escaped for real, but the thing is that it's global and they are even nuked in a comment is what I'm trying to show there. Somehow, somewhere backslashes need to be double escaped in order to survive?
paul
Any '\' I use in the htmlcode box get stripped.
Pick any form:
http://example.com/administrator/index.php?option=com_chronoforms#edit
and then choose the 'Code' tab between 'General' and 'JS Validation'.
Now, with 'Form Type' = 'Custom' type some stuff and include some php between normal php tags. Then add anything that includes the '\' character -- even something in a php comment e.g.
// some comment \n \" \anything
and all the '\' are stripped on save. Those are two chars I do often use escaped for real, but the thing is that it's global and they are even nuked in a comment is what I'm trying to show there. Somehow, somewhere backslashes need to be double escaped in order to survive?
paul
Hi paul,
No problems here. Slashes are preserved on save.
Using CFv4 RC3.21; Joomla! 2.5.3 and PHP 5.3.5
Bob
No problems here. Slashes are preserved on save.
Using CFv4 RC3.21; Joomla! 2.5.3 and PHP 5.3.5
Bob
K, I'll try rc3.2 in the morning then. Thanks bob.
edit: No, same as before. I'm on php 5.3.3, so that's the only difference now between you and me, since I installed Chronoforms_V4_RC3.21_J1.6.zip and have j2.53.
edit: No, same as before. I'm on php 5.3.3, so that's the only difference now between you and me, since I installed Chronoforms_V4_RC3.21_J1.6.zip and have j2.53.
Hi Bob or Paul,
Any solution for this issue???
I encounter same problem. My web configuration is as follow:
- ChronoForm 4.0 RC3.4.1
- Joomla 2.5.6
- PHP 5.3.14
I have another system running at different machine with the only difference is using PHP 5.3.10, it does not have same issue. It can save the backslash codes correctly.
Is there anything that I have to configure at PHP 5.3.14 ?🤨
Thank you in advance.
Kind Regards,
Daniel
Any solution for this issue???
I encounter same problem. My web configuration is as follow:
- ChronoForm 4.0 RC3.4.1
- Joomla 2.5.6
- PHP 5.3.14
I have another system running at different machine with the only difference is using PHP 5.3.10, it does not have same issue. It can save the backslash codes correctly.
Is there anything that I have to configure at PHP 5.3.14 ?🤨
Thank you in advance.
Kind Regards,
Daniel
Hi Daniel,
Pleas go to Site Admin | System Information | PHP Settings and check if Magic Quotes is on or off.
Bob
Pleas go to Site Admin | System Information | PHP Settings and check if Magic Quotes is on or off.
Bob
This topic is locked and no more replies can be posted.