I am trying to get some input from a user and use this input in a php script. Right now I have a form tag, of the few that I understand, this can't have multi-line input. The solution seems to be TextArea, however I'm not sure how to get input from TextArea.
Here is my code with the form:
<form action="traitement_cmd.php" method="post" >
Enter Cmd: <input type="text" size="100" maxlength="100" name="cmd"/>
</form>
The textarea tag does not seem to have the same attributes as the form tag, so I'm not sure how to change my code. I also need a button so the user can click to send their input to a php script.
How can I change my code to do this?
Thanks.
source
share