php - Disabling the user to change the source of the HTML page -



php - Disabling the user to change the source of the HTML page -

in homepage, display pictures of members. and, of these pictures have href tag directs page profile page. page, profile.php, gets relevant info href, like

<a href= "profile.php?name=james stone">

however, url shows in url if user alter url's "name" part as, "abc", site tries person name abc. in conclusion, site tries display non-existent person "abc" results in lots of errors. how can disable users alter url?

sorry, cannot command user can alter in html source.

your approach managing non existent urls wrong.

instead, should create error page, if user not exist , display "user not exist".

php html

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -