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.
Textarea not submitable?
Started by toxifyshadow, Apr 02 2010 08:21 PM
5 replies to this topic
#1
Posted 02 April 2010 - 08:21 PM
|
|
|
#2
Posted 02 April 2010 - 10:00 PM
#3
Posted 03 April 2010 - 08:10 AM
Lol I don't actually have that code anymore. Well is there any other way to make a multiline form?
#4
Posted 03 April 2010 - 07:15 PM
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>
#5
Posted 05 April 2010 - 05:59 AM
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
Posted 05 April 2010 - 07:20 AM
Hi, check ur server side scripts.


Sign In
Create Account



Back to top









