+ 3

Is it possible to upload to the platform of Sololearn a php code that handles forms,so that it receives data from users?

I have made a php code that allows the user to enter data through a form. Within the Form tag, the action parameter is derived to the same program, but when I run the program, a new session does not start. Is it possible to do it in Sololearn? I've tried it on my computer and it works. I appreciate what you can guide me

28th May 2018, 3:28 PM
Cecilia
Cecilia - avatar
11 Answers
+ 5
complex PHP code are not supported on sololearn codeplay ground I have also tried many times but failed ,because of security issues I think but there is another way , try reading this thread https://www.sololearn.com/Discuss/1136963/?ref=app
28th May 2018, 3:54 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 3
Just try it yourself and see if you succeed..
28th May 2018, 3:43 PM
***
*** - avatar
+ 2
I have actually tried it, but when sending the form the next session does not start
28th May 2018, 3:48 PM
Cecilia
Cecilia - avatar
+ 2
Then try this stuff out of sololearn and see if it works then. If so, then you got your answer. If not, come back here and ask why your code doesn't work and insert the code in your post.
28th May 2018, 3:49 PM
***
*** - avatar
+ 2
Thanks Shudarshan Rain. I will continue investigating but in the meantime, I will upload a simpler code that does not work with forms. That the data is entered manually
28th May 2018, 4:08 PM
Cecilia
Cecilia - avatar
+ 2
1. Always remove comments/commented-out code. Your codenames should be selfexplaining. 2. Always write code in just one language, English is prefered. I am not an expert in PHP, but just by looking at your code I could already see those feedbackpoints. Good luck!
28th May 2018, 4:35 PM
***
*** - avatar
+ 2
thank's for your feedback Boem Shakalaka
28th May 2018, 4:42 PM
Cecilia
Cecilia - avatar
+ 1
good luck Cecilia 👍
28th May 2018, 4:19 PM
Sudarshan Rai
Sudarshan Rai - avatar
28th May 2018, 4:26 PM
Cecilia
Cecilia - avatar
+ 1
https://code.sololearn.com/wghH6LXqhC9P/?ref=app
28th May 2018, 4:27 PM
Cecilia
Cecilia - avatar
+ 1
horoscopo works with forms. But not in Sololearn. horoscopob doesn't work with forms and the user must write the date in the code. I hope your opinions
28th May 2018, 4:30 PM
Cecilia
Cecilia - avatar