• Frustrating problem … trying to create an HTML form in a static page. It involves two textarea tags. But once I create the page and save it, the second textarea vanishes.

    Going to edit the page reveals the problem: my second textarea is appearing outside/below WP’s own textarea (the one named “content”). Is WP not closing this tag properly? It seems like nothing I do can produce a valid form with two textarea tags … grr!

    Thanks in advance,
    James

Viewing 2 replies - 1 through 2 (of 2 total)
  • I tried this peice of code as a test with no problems (in the html window:

    <FORM action="http://somesite.com/prog/text-read" method="post">
    <P>
    <TEXTAREA name="thetext" rows="20" cols="80">
    First line of initial text.
    Second line of initial text.
    </TEXTAREA>
    <INPUT type="submit" value="Send"><INPUT type="reset">
    </P>
    </FORM>

    I know WP will strip out any empty elements. I’ve had to put &nbsp; in places to get around this. You could also turn off the WYSIWYG editor when making the forms.

    By the way, I got this from here:

    http://www.w3.org/TR/html4/interact/forms.html#h-17.7

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘textarea tag not closing?’ is closed to new replies.