Hi There,
I upgraded PHP from v4.0.x to v4.2.3 recently and some of my 'old' PHP files no longer work correctly. I had a poke around the site and it seems some of the predefined variables have changed.
Can someone please tell me the correct way to use the values from $_POST?
As an example, during one of my tutorials, this INSERT used to work, now it doesn't -
$sql = "INSERT INTO employees (first,last,address,position) VALUES ('$first','$last','$address','$position')";
So, I tried the following (which looks correct according to the php editor I used....)
$sql = "INSERT INTO employees (first,last,address,position)VALUES ('" . $POST['first'] . "','" . $POST['last'] . "','" . $POST['address'] . "','" . $POST['position'] . "')";
Results - I'm not getting anything put into my table.
Any help would be appreciated!
Andrew 🙂