0){ echo ''; } else { echo ''; } if ($_SERVER['REQUEST_METHOD'] == 'POST'){ $usersname = $_POST['name']; } else { $usersname = $_SESSION['name']; } ?>
Account Management MenuManage Account
"; if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { echo "File is valid, and was successfully uploaded.\n"; $imagename = $uploadfile; $results = insert_avatar($imagename,$usersname); include update_avatar.php; } else { echo "Upload failed.\n The file is either not of a supported file type (jpg) or is too large (64KB max)."; } ?>
Logout