+ 1
How can we provide user defined inputs or how to take inputs from user for any variable in PHP?
4 odpowiedzi
+ 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[]
+ 2
you can also use html form to get input from user and submit using PHP code.
+ 1
🇳🇬Brains you could set the var somevar = prompt("Enter something");
then calculate somevar... In js i mean.
0
thank you