PHP background cannot get variables
依然是小超
依然是小超 2020-02-17 00:56:40
0
1
886

Hello teachers, when I uploaded the picture, I made a user ID to pass the value,

$uid = $_SESSION['userid'];

echo $ uid; There is no problem with this, the variable can be output normally.

If I put this variable into the judgment, the value cannot be obtained.

if(!empty($_FILES['avatar_file']['tmp_name'])){

$uid = $_SESSION['userid'];

echo $uid; //POST cannot get the value either.

what should I do then?

依然是小超
依然是小超

reply all(1)
依然是小超

Already solved it myself

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template