How to get data in PHP from user here in SoloLearn? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to get data in PHP from user here in SoloLearn?

For example, we want to ask user to type his or her name and then print "Hello, $user!". Since there's no way to implement fully functioning HTML form due to SoloLearn embedded web browser limitations, is there any workaround to receive data from the user?

30th Nov 2017, 12:53 AM
Ruslan Nagiev
Ruslan Nagiev - avatar
2 Answers
30th Nov 2017, 2:56 AM
Rachit Mishra
Rachit Mishra - avatar
+ 1
Thanks, Rachit! To tell you the truth, it's not quite what I was looking for, since here in SoloLearn we interact with the browser window rather than CLI. I tried to implement the code suggested but no use. But that encouraged me to dive into Javascript :) I hope there is some more or less straightforward way to transfer data back and forth from Javascript to PHP and vice versa...
30th Nov 2017, 10:57 PM
Ruslan Nagiev
Ruslan Nagiev - avatar