Curious PHP issue
Posted: Fri Sep 18, 2020 2:09 pm
I have the following PHP snippet generated by one the the extensions:
I have two Apache based servers, one running PHP 7.3.6 and the other 7.4.9
On PHP 7.3.6, the code runs fine
On PHP 7.4.9, the code raises an "Unknown index" error and several others later on relative to the variable "password".
Any thoughts on why, I am baffled.
Jim
Code: Select all
<?php
session_start();
$success_page = 'https://<a valid URL>';
$error_page = './page1.html';
$mysql_server = 'localhost';
$mysql_username = 'xxxxxxxxx';
$mysql_password = 'xxxxxxxx';
$mysql_database = 'xxxxxxxx';
$mysql_table = 'xxxxxxx';
$crypt_pass = md5($_POST['password']); <=============== Unknown Index
$found = false;
$fullname = '';
$role = '';
$avatar = '';
$session_timeout = 600;
$error_message = "";
On PHP 7.3.6, the code runs fine
On PHP 7.4.9, the code raises an "Unknown index" error and several others later on relative to the variable "password".
Any thoughts on why, I am baffled.
Jim