Thread: HTML -> PHP3

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Location
    Bucharest, Romania
    Posts
    10
    Rep 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.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    31
    Rep Power
    15
    Could you please post your form code so I could try helping you.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Location
    Bucharest, Romania
    Posts
    10
    Rep 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... :-(
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    31
    Rep Power
    15
    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 :-)
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Location
    Bucharest, Romania
    Posts
    10
    Rep 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.

Similar Threads

  1. How to get client email??Help plz
    By Gecko22 in forum ASP Programming
    Replies: 12
    Last Post: January 22nd, 2004, 02:40 PM
  2. not returning records when it should
    By aliaga61 in forum ASP Programming
    Replies: 3
    Last Post: January 16th, 2004, 11:57 AM
  3. 'Object required' error
    By aliaga61 in forum ASP Programming
    Replies: 1
    Last Post: January 16th, 2004, 09:48 AM
  4. Replies: 2
    Last Post: November 4th, 2003, 11:25 PM
  5. Question: Compressing HTML -> suggestions please!
    By nao in forum Perl Programming
    Replies: 3
    Last Post: October 24th, 2003, 08:16 PM

IMN logo majestic logo threadwatch logo seochat tools logo