0

I would like to know if there is a multiline textarea you can put in a form that looks like this:

<form action="form.php" method="POST">
    <input name="field2" type="text" />
    <input type="submit" name="submit" value="Submit">
</form>

as you can see, the php script is reliant on the FORM tag, is there any way I can make the textarea actually work in the form like an input element?(what i am trying to do is use php to save a text file server side when button clicked)

parseguy
  • 129
  • 2
  • 17

1 Answers1

1

Yes. Just include the following within the form tags:

<textarea name='textfield' placeholder='type your text here'></textarea>