Menu

#269 Form data won't submit with POST

2.x
closed-fixed
None
5
2011-10-12
2010-11-20
Anonymous
No

Hi Pierre - me again...

I figured out why the session stuff failed - it wasn't the session itself it was the form-processing! :-/
When using forms with the method 'GET' everything works just as it should, but somehow 'POST' messes that thing up!

Let's take a simple form with one text-field 'INP' and the method POST:
using isset($_POST['INP']) returns true, however the value of $_POST['INP'] is empty. Instead, the variable $_GET['INP'] returns the correct text entered in the form (although the POST method was used!).

I don't know what exactly you changed in the 2.4 version, but both that session- and form-stuff worked fine in 2.3....

Greetz
Michael

Discussion

  • Pierre Fauconnier

    • assigned_to: nobody --> pf18387
    • status: open --> open-wont-fix
     
  • Pierre Fauconnier

    > it was the form-processing! :-/
    Ok. There's already a thread about this bug
    http://sourceforge.net/projects/devphp/forums/forum/426561/topic/3763209

    > what exactly you changed in the 2.4 version
    The compiler: we went from Delphi6 to Delphi 2009
    Delphi 2009 is "full unicode".

    "Internal Preview" is based on the common gateway interface (PHP-CGI)
    I've sent a question to comp.php.windows - no reply
    http://article.gmane.org/gmane.comp.php.windows/17287

    Perhaps should I file a bug request?

    Regards,
    Pierre.

     
  • Pierre Fauconnier

    Unlike $ _GET which is a collection of Unicode variables, the $ _POST variable is an UTF8 encoded file. The fix is only 2 lines of code.
    I've created a too huge bug.
    Thanks a lot for your patience.

    Yours respectfully,
    Pierre.

     
  • Pierre Fauconnier

    • status: open-wont-fix --> open-fixed
     
  • Pierre Fauconnier

    • milestone: --> 2.x
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB