Hi,
I have a PHP script that has been running fine on the server at my ISP. Code extract is as follows:
<?php
$action = $_REQUEST['Submit'];
(carry out conditional statements based on $action)
?>
Been working fine until the weekend, but now the web-server generates 'The page canot be displayed'
If I take out the $action = $_REQUEST['Submit']; then I don't get an error - but of course the logic doesn't work. I have tried using $_POST and also:
$method = strtolower($HTTP_SERVER_VARS['REQUEST_METHOD']);
$_vars = $method == "get" ? $HTTP_GET_VARS : $HTTP_POST_VARS;
$action = $_vars[Submit'];
but all generate the same 'Page cannot be displayed'
If I run the script on another server it is also fine.
Is there anything server-specific in php.ini or apache config files that could have caused these variables to fail?
Thanks in anticipation...
Nick Roper
I have a PHP script that has been running fine on the server at my ISP. Code extract is as follows:
<?php
$action = $_REQUEST['Submit'];
(carry out conditional statements based on $action)
?>
Been working fine until the weekend, but now the web-server generates 'The page canot be displayed'
If I take out the $action = $_REQUEST['Submit']; then I don't get an error - but of course the logic doesn't work. I have tried using $_POST and also:
$method = strtolower($HTTP_SERVER_VARS['REQUEST_METHOD']);
$_vars = $method == "get" ? $HTTP_GET_VARS : $HTTP_POST_VARS;
$action = $_vars[Submit'];
but all generate the same 'Page cannot be displayed'
If I run the script on another server it is also fine.
Is there anything server-specific in php.ini or apache config files that could have caused these variables to fail?
Thanks in anticipation...
Nick Roper