ok, I have no clue why, but all of the textareas on my site
www.returntothepit.com
don't allow a text size greater than a certain size.
it's really pissing me off to.
does anyone have any ideas?
I know with phpMyAdmin the text areas can hold as much text as I can put in them.
tia
amount of text in a textarea on php
Ummm, perhaps you should post the code. I can't think of a reason I'd want to slosh around your entire site just to find the textareas you're talking about....I mean, if you'd posted the direct link instead of just the index page.....it's not at the TOC, either methinks.....
Did you give the areas row= col= dimensions?
ok, I uploaded a test.
http://www.returntothepit.com/playtest.php
fill up the textareas.. or close to fill them up
just fill them up with:
dsa
ds
af
sadf
asdfasdfas
dfas
df
asdfasdfasf
asd
fasd
f
sadf
asdf
asdf
and then click submit query and it won't go anywhere....
this issue is rampent in ALL textareas on my site and is really pissing me off.
thanks
Originally posted by apepelis
ok, I have no clue why, but all of the textareas on my site
www.returntothepit.com
don't allow a text size greater than a certain size.
it's really pissing me off to.
does anyone have any ideas?
I know with phpMyAdmin the text areas can hold as much text as I can put in them.
tia
I have the same problem . It seems a problem with windows xp , infact you should not have the problem with Netscape or other browser but only with IE6
uhm , no your problem is different of mine .
Do you have try to relacing <form action="/playtest.php">
with <form action="playtest.php"> ?
You can do this by adding this piece of Javascript at your page
<script language="javascript">
function textKey(f) {
supportsKeys = true
calcCharLeft(f)
}
function calcCharLeft(f) {
clipped = false
maxLength = 600 <!-- Number of characters allowed -->
if (f.message.value.length > maxLength) {
f.message.value = f.message.value.substring(0, maxLength)
charleft = 0
clipped = true
} else {
charleft = maxLength - f.message.value.length
}
return clipped
}
</script>
and then your text area should be like this
<textarea name="message" rows="10" cols="80" onKeyUp="textKey(this.form);"></textarea>
This will prevent users from typing more than 600 letters inside a text area
Also you can use the variable charleft to display the remaining characters by adding the following line before the return clipped line :
f.name of the field displaying characters left.value = charleft;
(If you don 't need it then just delete the lines that calculate it)
Note that the name of the textarea message appears inside the javascipt functions.
hope this helps
Use method="POST" instead of GET in your form tag. If you don't define method in the form tag GET is assumed. If I recall, there's a limit to how much you can GET, and the buffer for POST is much larger.
Sorry I though you want to limit the amount.
Well As far as I can see you submit all the data to a query string. Why??????
You can use this:
<form action="
<?php echo $PHP_SELF; ?>
">
Date: <input name=date type=text size=35 value="
<?php echo $date; ?>
"><br>
Time: <input name=time type=text size=35 value="
<?php echo $time; ?>
><br>
<table ><tr><td>Band</td><td>Song Name</td></tr>
<tr><td><textarea name=bandlist rows=80 cols=30 wrap=virtual tabindex=5>
<?php echo nl2br(stripslashes($bandlist)); ?>
</textarea></td>
<td><textarea name=songlist rows=80 cols=55 wrap=virtual tabindex=5>
<?php echo nl2br(stripslashes($songlist)); ?>
</textarea></td></tr></table>
<input type=submit name=submit>
</form>
Hope this time this will help:p
wow, mikeatrpi, I just tried that and it worked 100%
arg.. I can't believe all the gets on my site.
I thought I wrote everything posts,
but I must have c+p's some bad code.
thanks X a million
thanks guys
i was looking for this code from a long time