ID: 33276 Updated by: [EMAIL PROTECTED] Reported By: ymalik at cs dot stevens dot edu -Status: Open +Status: Bogus -Bug Type: Unknown/Other Function +Bug Type: CGI related Operating System: NetBSD 2.0.3 PHP Version: 5.0.4 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2005-06-08 16:29:23] ymalik at cs dot stevens dot edu Description: ------------ The following are two HTML forms along with their corresponding handlers: (1) a. http://www.cs.stevens-tech.edu/~ymalik/tmp/index.html b. http://www.cs.stevens-tech.edu/~ymalik/tmp/action.php (2) a. http://www.cs.stevens-tech.edu/~ymalik/tmp/index2.html b. http://www.cs.stevens-tech.edu/~ymalik/tmp/action.cgi 2.a is exactly the same as 1.a except the handler is action.cgi. Accordingly, 2.b is exactly the same as 1.b (with the shbang of course). When you submit using 1.a, the form data is displayed in the handler script. However, when you submit using 2.a, the data isn't displayed. This used to work fine before with PHP 4(I think about 1.5 years ago; I haven't used PHP with form data in a long time). Using CGI is not necessary is this case, but it is when interacting with the database; this has been done for "security reasons." Our sysadmin can't figure this one out, though. Here is the output for phpinfo(): http://www.cs.stevens.edu/~ymalik/phpinfo.php I have queried the bug system, but I have only found this problem with PHP 4. Thanks. Reproduce code: --------------- Here is the code for action.php: <?php print "Number of elements in POST: ". count($_POST) ."\n"; print_r($_POST); ?> and the code for action.cgi: #!/usr/pkg/bin/php <?php print "Number of elements in POST: ". count($_POST) ."\n"; print_r($_POST); ?> Expected result: ---------------- I expect to see the same output in action.cgi as I did in action.php Actual result: -------------- $_POST has no data in action.cgi. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33276&edit=1
