I am new to PHP, so I apologize if this is a simple problem ...
I am moving a PHP site from one server to another. The new server is IIS 7.0, PHP 5.2.1, with a short open tag converted to "On", and I donβt know how the original server was configured (I was just provided with the code).
Below is the very first section of code on one of the pages:
<? ob_start(); session_start(); if($_GET['confirm'] == 13 || $_GET['confirm'] == 14 || $_GET['confirm'] == 15 || $_GET['confirm'] == 16) { include("test/query/test_query.php"); } ?>
When this page is executed, the following error is always displayed:
PHP note: Undefined index: confirm at [file location] .php on line 6
In addition, users access this page by redirecting from the home page (which is a standard HTML page). Full URL with proper navigation:
http: // www. [site] .com / test.php # login
... I understand why the error occurs. I do not understand how this code could work, as on the source server. Can I skip the configuration?
* The same problem occurs in dozens of locations around the site. This is just one specific problem event.
Hooray jay
source share