Jump to content

Textarea not submitable?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1
toxifyshadow

toxifyshadow

    Programmer

  • Members
  • PipPipPipPip
  • 125 posts
For some reason on my site I had a word and character counter but it could only submit the 1line text input not the textarea, I need it to be multiline. Any way to fix that?

I'm trying to say that my multiline textareas arn't submitable.
Posted Image

#2
zeroradius

zeroradius

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,406 posts
are you making sure it is inside of the form? Post your code.
Posted Image

#3
toxifyshadow

toxifyshadow

    Programmer

  • Members
  • PipPipPipPip
  • 125 posts
Lol I don't actually have that code anymore. Well is there any other way to make a multiline form?
Posted Image

#4
zeroradius

zeroradius

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,406 posts
Not that i know of. I have never see it not submit when nested in a form. If we could see the code we could tell you what you are doing wrong but withought it theres not much we can do to help. it should look something like this

<form action="anotherpage.php" method="post">
    <textarea name="myText"></textarea>
    <input type="submit" value="SUBMIT" />
</form>

Posted Image

#5
SoN9ne

SoN9ne

    Programmer

  • Members
  • PipPipPipPip
  • 129 posts

toxifyshadow said:

Lol I don't actually have that code anymore. Well is there any other way to make a multiline form?

Yes, you can do this many different ways. You could keep it simple and just do a textarea. Or, you could use CSS and make a form with elements that looks the way you want. A multiline form is a little vague. Technically all forms would be considered multiline if they have more than one element :closedeyes:

The code provided by zeroradius would work. I would recommend that you use the rows and cols as it is recommend. I just tossed some random numbers in, you can play with them to get it look how you want. Also, on a side note, I would not set the width or height of the textarea with CSS as this can cause issues with displaying in browsers. Using the rows and cols will guarantee it will display properly in all browsers.
<form action="anotherpage.php" method="post">
    <textarea name="myText" rows="8" cols="50"></textarea>
    <input type="submit" value="SUBMIT" />
</form>

Edited by SoN9ne, 05 April 2010 - 06:00 AM.
fixed typos

"Life would be so much easier if we only had the source code."

#6
-Hurricane-

-Hurricane-

    Newbie

  • Members
  • Pip
  • 9 posts
Hi, check ur server side scripts.