witt Posted May 30, 2006 Share Posted May 30, 2006 Is it better to send IDs or names via GET?site.com/user.php?uid=2992orsite.com/user.php?name=hello Link to comment https://forums.phpfreaks.com/topic/10802-general-get-usage-question/ Share on other sites More sharing options...
homchz Posted May 30, 2006 Share Posted May 30, 2006 Totally misread that question :lol:I use both and determine where i need them. If it is a known item. I use words. If it is unknown and could be many I use numbers. My example [code]http://localhost/JoshuaJones/blog/index.php?page=comment&action=add&tid=288[/code]page=comment: I know there are only certian named pages. action=add: You can either add or read on the comment pagetid=28: The user chose the topic, and I can never know which they want to I use numbers here to make the rest of my realtions easier. Link to comment https://forums.phpfreaks.com/topic/10802-general-get-usage-question/#findComment-40389 Share on other sites More sharing options...
poirot Posted May 30, 2006 Share Posted May 30, 2006 I think it should understand both. While numeric id's are easier to program, humans are not good to memorize numbers.Like:showprofile.php?p=poirot is easier than showprofile.php?p=8844 Link to comment https://forums.phpfreaks.com/topic/10802-general-get-usage-question/#findComment-40390 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.