Check out the LimeSurvey source code on GitHub!

PHP automatically commented out!

More
5 years 2 weeks ago #73893 by yannischris
Hello,
I press the "Source" button, when creating a question, in order to add some php code. Then I press save and preview the page. The PHP code is ignored, and when I re-click "Source" the PHP code is commented out.

How can I prevent this from happening?

Thanks
The topic has been locked.
More
5 years 2 weeks ago #73894 by Mazi
You can't add PHP code at a question or any other text element. That would be a huge security risk!

What are you trying to implement in detail?


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"
The topic has been locked.
More
5 years 2 weeks ago #73896 by yannischris
Oh I see.. The reason I am doing this, is because I want to use PHP to access a MySQL database. Is there another way that I can do that?
The topic has been locked.
More
5 years 2 weeks ago #73903 by Mazi

yannischris wrote: Oh I see.. The reason I am doing this, is because I want to use PHP to access a MySQL database. Is there another way that I can do that?

See www.limesurvey.org/forum/development/730...art=20&lang=en#73488

<closed> to avoid further cross postings.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"
The topic has been locked.
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form