How do I prevent a user to use each *.php?cat='
Posted
by
shakur
on Stack Overflow
See other posts from Stack Overflow
or by shakur
Published on 2011-03-14T07:59:33Z
Indexed on
2011/03/14
8:10 UTC
Read the original article
Hit count: 434
php
|JavaScript
I got one form ... each category has different ID...
Example:-
http://localhost/control/newdpppage/...bank.php?cat=3
http://localhost/control/newdpppage/...bank.php?cat=4
Each user after login they go to the page assigned for them ...
-The Question.. How do i prevent User1 that can see cat=3 to see the data on cat=4 assigned for User2.
Thank you
I use for that JavaScript
JavaScript Code:
<SCRIPT language=JavaScript>function reload(form){var val=form.cat.options[form.cat.options.selectedIndex].valueself.location='dpp_add_lorthbankphp?cat=' + val;}</script>
© Stack Overflow or respective owner