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?
2 Answers
+ 3
Check the PHP Section
https://www.hackerrank.com/environment/sample-problem
+ 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...