+ 1

How can we provide user defined inputs or how to take inputs from user for any variable in PHP?

23rd Apr 2018, 7:56 AM
Shreya Karmakar
Shreya Karmakar - avatar
4 Answers
+ 3
on Sololearn you cannot,ive tried using js prompt but still couldn't figure out how to retrieve the input To officially receive input use a html form and then collect the input with $_post[] or $_get[]
23rd Apr 2018, 8:19 AM
᠌᠌Code X
᠌᠌Code X - avatar
+ 2
you can also use html form to get input from user and submit using PHP code.
30th Apr 2018, 7:30 AM
Jyothirani
Jyothirani - avatar
+ 1
🇳🇬Brains you could set the var somevar = prompt("Enter something"); then calculate somevar... In js i mean.
23rd Apr 2018, 8:41 AM
Akib
Akib - avatar
0
thank you
23rd Apr 2018, 8:37 AM
Shreya Karmakar
Shreya Karmakar - avatar