+ 1

How to take an input from the user in php? like we use scanf in C to take input from the user..

4th Nov 2016, 5:05 AM
Radhika Gupta
Radhika Gupta - avatar
3 Respostas
+ 1
it is server side language, you have to use html to get user input and than use input value like <textarea name="hello"></textarea> you can use $_GET['hello']; you can also use $_POST.
4th Nov 2016, 5:20 AM
Aditya kumar pandey
Aditya kumar pandey - avatar
+ 1
what is the difference between $_get and $_post?
4th Nov 2016, 5:33 AM
Radhika Gupta
Radhika Gupta - avatar
0
in url google.com\?q=search+aditya $_GET['q']; using get method it shows in url like q has been shown. But in Post method it send directly to server script. Post is more secure than get. But every thing is important choose what you want to use.
4th Nov 2016, 5:56 AM
Aditya kumar pandey
Aditya kumar pandey - avatar