登录 | 注册 | FAQ
Anonymous

Inspect element.

+ 发表回复

2 篇帖子 分页: 1 / 1


Inspect element.

yasmin » 周一 6月 02, 2014 9:21 am

Present i am doing a PHP project i am facing the problem to hide the field name in my code. when right click on the field & click on inspect element then it will show the id only,(id is an interface between the database table field name). It is for admin & developer, for user id should be hidden.

Plz help me if you have any idea.....

Thank you...
头像

yasmin

  • 帖子: 2
  • 注册: 周四 5月 29, 2014 6:17 am

Re: Inspect element.

XainPro » 周五 6月 06, 2014 9:29 am

simple answer :
you can not hide id from user !
complex answer :
use encryption :
when echoing an id encrypt it like
i.e echo base64_encode($id);
when getting and id decrypt it
i.e base64_decode($_GET['id])
then user would have no idea about what exactly your id is
but yet it's not fully safe :)
头像

XainPro

  • 帖子: 3933
  • 注册: 周五 2月 17, 2012 8:10 pm


+ 发表回复

分页: 1 / 1