Helllorgh, <all> !!!

I've got a strange problem...

Look at this pseudo-script (news.php) :

------------------------------------------------------
<?php
    ob_start("ob_gzhandler");
?>
<html>
<!-- blah blah //-->
<?php
//processing the form
    If (!empty($text) && !empty($title))
        {
        do some stuff to check the posted variables;
        insert into database;
        this includes if-else, etc..., but no functions (so no scope matter
:-));
        etc, etc... ;
        }
// diplaying the news
     Display the 5 last news in nice html;
?>
<form action="news.php" method="post" name="form"
enctype="multipart/form-data">
 <table>
  <tr>....etc....
   <input type="text" name="text" ....value="<?php echo $text; ?>">
   <input type="text" name="title" ....value="<?php echo $title; ?>">
   <input type="file" ....>
   <INPUT type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"250000\">
   ..... and the submit, plus 1 or 2 others...
 </table>
</form>
</html>
<?php
        ob_end_flush();
?>
------------------------------------------------------------------

Well, this worked fine for nearly a year now, (and still works),  when this
script was named "news.php3", but I wanted to use the "ob_" functions ...
So, a few days ago, I renamed the script in "news.php", added a few lines of
code to add one or two enhancements (I don't think they are a problem), and
now, there is now way to post a "news".
What is happening : I tested this script at home (EasyPHP under windows),
everything worked fine, I was able to post some "news", check for the
correct displaying, correct it if necessary, and then, by checking the
"final version" checkbox, send it definitely.
Well, quite happy at 2 am (:-)), I uploaded it on my provider's server
(Recently upgraded with PHP4.xxx), but there, nothing is working !!!
The script acts as if no (or not enough) field was filled, thus diplaying
the old news, but not the newly posted...
Adding ' echo "\$text : $text<br>\n"; ' shows that the script doesn't see
the posted fields, and the form stays empty (Should display the submitted
values for correction) !!!
The only way to get it to work has been to rename the script in "news.php3",
then commenting the "ob_..." functions (I discovered that extension is
version :-)), and it now works fine !!!
Well, I'd really like to use the "ob_" functions, and simply know where goes
the posted stuff with PHP4... As I've got some other scripts written in PHP4
(".php") with the same kind of programming that work fine on the same server
!!!

Finally, i'm making some tests by replacing "$text" and "$title", etc...,
with $_POST["text"], $_POST["title"], as I've read that it is now standard
and secure programming (Can someone confirm, please ??? Are "$vars"
deprecated ???).
Well, the result is nearly the same.... no displaying, but the form stays
filled.

Sorry for that LLLLooooong mail, but I tried to tell the maximum, so maybe
one sees immediately the problem...
Thanx, @+++



 Nayco.

    (-  [EMAIL PROTECTED]
    //\  http://refreship.free.fr, redirection pour l'hebergement ADSL.
    v_/_ Http://luxregina.free.fr, Forum Live.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to