Hi all. I have written an application that uses PHP, Apache, and MySQL. It is for lot tracking some materials for the company that I work for. I downloaded a premade WAMP (Windows, Apache, MySQL, PHP) stack to run on my laptop and made my application. Everything about it seemed to work fine when I moved it over to my company's Linux (LAMP) server, but later I realized that one key variable was not getting passed between pages like it should have been. I moved the file back to my windows box and it still worked. When I look at my database, it becomes obvious to me that $pqid does not get passed from the intermediate page. $pqid is a value that is POST'ed from a form in a primary page to my intermediate page, and I use a hidden field in a form (on my intermediate page) to pass it to the (final) processing page. The final processing page does not seem to get the value passed to it on my Linux box. That said, I doubt that my problem is a Linux/Windows problem, but rather an issue in some PHP setting that I missed. I have looked at the phpinfo() files for both servers, and assume that they hold my answer, but I am overwhelmed at the sheer volume of (mostly meaningless to me) data. My code is below; appreciate your help:
PHP Code:
<?php
while (list($name, $value) = each($HTTP_POST_VARS))
{
echo "<input type=\"hidden\" value=\"$value\" name=\"$name\">\n";
}
?>
This code is within a "POST" type form, and the value for $pqid is posted to the intermediate page, where this code lives.