1 Reply Latest reply on Jun 23, 2008 5:58 PM by peterj

    JBoss  4.2.2.GA with PHP servlet - POST params not found wit

    gkincade

      We're running JBoss 4.2.2.GA on Windows XP with the PHP 5 servlet set. PHP 5.1.6 is installed for compatibility with the servlet.

      We have two .php pages, one calling the next via a complex Javascript script. The second page is called with the POST method and parameters are passed so that when it runs, it accesses the parameters using $_POST and passes them into a dynamic MySQL SELECT which returns the data.

      This works under Apache reasonably well (i.e. the $_POST's work).

      But under JBoss, the parameters are being set up and we can see them in the JBoss console but the $_POST's all fail with messages like:

      PHP Notice: Undefined index: page in C:\jboss-4.2.2.GA\server\default\deploy\post2.php on line 26

      I've seen lots of posts elsewhere on other PHP forums about problems with $_POST and array corruption.

      Is this likley to be the problem and if so how can we get round it (I note the Linux PHP servlets are more up to date than the Windows ones on the download section).