Click to See Complete Forum and Search --> : [RESOLVED] post textarea - submit does nothing!
ndorfnz
12-29-2006, 10:18 PM
I have a form where users can enter lots of data into a textarea.
Upon submitting the form, the data is stored into a longtext column in a mysql table.
However, it seems when I get around 1200 chars and then click the submit button NOTHING happens.
It doesn't even attempt to submit the data, the html page does nothing.
You can continually click the submit button with nothing occurring?
Anyone aware of some weird limitation within IE6 or textarea in general?
This quite annoying! ;)
Thanks.
Weedpacket
12-29-2006, 11:32 PM
The first thing that occurs to me to check is that the form's action is POST, not GET; there is a limitation on the length of a URL.
bradgrafelman
12-30-2006, 06:04 AM
And if that doesn't work, can you provide us with an URL to this form?
ndorfnz
12-30-2006, 12:50 PM
POST is being used.
Here's a sample...
http://www.ndorfnz.com/textarea.php
From what I have found it varies on when it will submit or not?
I have gotten it to submit around 1427 chars, but around 1490 it will not?
Could the "type" of chars within the textarea play part in this problem? Say like "/" or something? I have seen the number of chars that will submit decrease when "/" is present?
Just beyond weird to me!
Appreciate the insight!
EDIT...
Update...I did some adjusting of the form property tag. Before I had the action and post method shown separate. Once I put them withing the same form callout, it seems to work!?
It is now:
<form name = "log" ACTION="<?php echo $SERVER['PHP_SELF']; ?>" method="post">
Used to be:
<form name = "log">
blah blah...
<form ACTION="<?php echo $SERVER['PHP_SELF']; ?>" method="post">
Could that really have been the difference?
bradgrafelman
12-30-2006, 03:16 PM
1. If you have two separate FORM tags, you have two separate forms... of course it would make a difference. If you did <table width="500"> ... <table border="1"> ... would you have one table that is 500 units wide with a border? No, you'd have two separate tables! The same applies to FORM tags.
2. I believe you meant to use $_SERVER, not $SERVER, as defined on this man page: variables.predefined.
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.