0
How can I ask use to input?
2 Réponses
+ 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.
+ 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;
?>