0

How can I ask use to input?

12th Nov 2016, 1:52 AM
Daliah Aljutayli-داليه الجطيلي
Daliah Aljutayli-داليه الجطيلي - avatar
2 odpowiedzi
+ 2
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.
12th Nov 2016, 2:43 AM
Aditya kumar pandey
Aditya kumar pandey - avatar
+ 1
index.html ------ <!DOCTYPE html> <html> <body> <form action="yourPhpFile.php" method="POST"> <input type="text" name="input"> </form> </body> </html> yourPhpFile.php ----- <?php $input = $_POST['input']; echo $input; ?>
12th Nov 2016, 9:47 AM
Tim Book