+ 1
How to take an input from the user in php? like we use scanf in C to take input from the user..
3 odpowiedzi
+ 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.
+ 1
what is the difference between $_get and $_post?
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.