|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello,
i'm using a .html that sends some variables to a .php3. The data type is "textarea". Sometimes, when the data exceeds a number of characters (the limit is NOT constant) the .php3 does not receive the whole text. I cannot understand why is this happening. The maximum length for a textarea field is 32k, my text is MUCH less than this. Does anybody know what's happening ? Thanx in advance... p.s. I'm using RedHat6.1, with php3, and the browser is MSIE 5. |
|
#2
|
|||
|
|||
|
Could you please post your form code so I could try helping you.
|
|
#3
|
|||
|
|||
|
Here is the first file:
mailing_list_de.php3 ==================== <? mysql_connect("localhost","webuser","") or die("Database error"); mysql_select_db("rex"); $query="select doc_id,titlu from hybrid where limba='dt' and tip=210 order by data desc limit 3"; $result=mysql_db_query("rex",$query); if ($result) { while ($r=mysql_fetch_array($result)) { $titlu=$r["titlu"]; $doc_id=$r["doc_id"]; $text="$titlu".$cr."http://www.mysite.ro/show_art_mail.php3?doc_id=".$doc_id.$cr.$cr; } } this action is included in a loop, so the $text string has usually about 4 k. ?> <form action="mailing_list_de_send.php3"> <p>Text: <textarea rows="14" name="S1" cols="82"><?print "$text"; ?></textarea></p> <p><input type="submit" value="Send"></p> </form> mailing_list_de_send.php3 ========================= <? mysql_connect("localhost","webuser","") or die("Database error"); mysql_select_db("rex"); print"$S1<br>"; $query="select email from mailing_list where limba='dt'"; $result = mysql_db_query("rex",$query); if ($result) : { while ($r=mysql_fetch_array($result)) { $email=$r["email"]; mail($email,"News",$S1,'Errors-To: errors@mysite.ro'); print "ok<br>"; } } endif; ?> ================================= The text shown in the mailing_list_de_send.php3 file is not the whole text... I receive no errors, but the $S1 variable received in the 2nd file does not contain the whole data... :-( |
|
#4
|
|||
|
|||
|
1.<form action="mailing_list_de_send.php3" enctype="multipart/form-data" method="post">
2.<form action="mailing_list_de_send.php3" method="post"> 3.<form action="mailing_list_de_send.php3" enctype="multipart/form-data"> I can't access my development machine at the moment so I can only make guesses.. Try those and post the results here. <form> no 1 might work for you and I have no idea what those other 2 do :-) |
|
#5
|
|||
|
|||
|
I really did not know what to do..... but I've tried only the first alternative. I did not try the others, because IT WORKS !!!! YES !! Thank you VERY much.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > PHP Development > HTML -> PHP3 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|