I could use some advice on how to structure web-pages and URL's related to Friend-Requests.
Here are the "views" that I would like to offer a member when they are viewing their account...
1.) Manage Incoming Friend-Requests that are New
2.) Manage Incoming Friend-Requests that they Declined
3.) Manage Current Friends (i.e. Friend-Requests that were Accepted)
4.) View Outgoing Friend-Requests that the Member made to Others
Originally I had #1, #2, and #3 coded as separate web-pages, and #4 doesn't exist.
After reviewing my code, it looks like #1 and #2 are identical except for slightly different queries. (I suspect #4 falls into this category as well.)
#3 is different enough to need to be its own page.
The EASY approach would be to code 4 separate pages, and live with the duplicate code. (Which wouldn't be so bad, since I don't see things changing.)
It would also mean a simpler URL structure like this...
The TRICKY approach would be to maybe break things up like this...
But that means needing Mod_Rewrites, having to re-write #1 and #2, sanitizing query strings, etc.
Any suggestions on what would be the best approach?!