PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 15th, 2000, 01:15 PM
cip cip is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: Bucharest, Romania
Posts: 10 cip User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old April 15th, 2000, 11:50 PM
Dist Dist is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 31 Dist User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
Could you please post your form code so I could try helping you.

Reply With Quote
  #3  
Old April 16th, 2000, 06:09 AM
cip cip is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: Bucharest, Romania
Posts: 10 cip User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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... :-(

Reply With Quote
  #4  
Old April 16th, 2000, 09:11 AM
Dist Dist is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 31 Dist User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
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 :-)

Reply With Quote
  #5  
Old April 17th, 2000, 02:47 AM
cip cip is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: Bucharest, Romania
Posts: 10 cip User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > HTML -> PHP3

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap