How to prevent the user from changing values in the HTML or the JavaScript

后端 未结 3 659
春和景丽
春和景丽 2021-01-22 14:19

I am trying to make a user can change they are changing profile text color and background color.

I created this DEMO from codepen.io

In this d

3条回答
  •  青春惊慌失措
    2021-01-22 14:48

    In the server-side code change_theme.php you should have two seperate arrays for textcolors and background colors.

    change_theme($uid,$text-color,$background-color);
    
        }
    ?>
    

    Hope this helps you.

提交回复
热议问题