[Xitami] Not seeing FORM POST fields

Thomas J. Hruska xitami@lists.xitami.org
Sat, 18 Aug 2001 16:48:26 -0500


At 07:17 AM 8/19/01 +1000, Neville Franks writeth:
>I've installed Xitami and PHP4 on a Windows 2000 box and everything is
>working fine except I can't see an FORM POST fields in the PHP script.
>ie. When Submit is pressed the field values are all empty when the PHP
>script processes it.

I never liked this about PHP (or at least I could never figure it out), but
the HTTP_POST_VARS hash is a bit strange.  Basically, your variables are
converted from the hash into normal variables:

phpinfo() shows something like this -
HTTP_POST_VARS["MyVariable"] = MyValue
MyVariable = MyValue

Referencing it like this doesn't work as expected:
if ($HTTP_POST_VARS["MyVariable"] == "MyValue")
{
}

However, referencing it like this does:
if ($MyVariable == "MyValue")
{
}

>I've searched the archives and have seen a few other people mention
>this problem but haven't seen any solutions posted. I've waisted best
>part of a day on this and it is driving me nuts. Xitami looks good,
>but if I can't get this resolved quickly I guess I'll move to Apache.

Apache is horribly unstable under Windows with PHP (especially with
mod-ssl).  I wasted an entire week re-building that piece of junk from
scratch using every option possible (I personally would write my own web
server if I had a choice between that and Apache - it's a good thing Xitami
exists).  Just thought you would like a heads-up.

>On another note why haven't the Archived Mailing lists been updated
>for many months?

Check the headers of this post for links to the new archives.

Hope this helps!


           Thomas J. Hruska -- shinelight@crosswinds.net
Shining Light Productions -- "Meeting the needs of fellow programmers"
                  http://www.shininglightpro.com/