parseguy
parseguy

Reputation: 129

is there a form alternative to text-area that is multi-line(not like input field)

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)

Upvotes: 0

Views: 2521

Answers (1)

Richard Theobald
Richard Theobald

Reputation: 777

Yes. Just include the following within the form tags:

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

Upvotes: 1

Related Questions