logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > PHP
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 09-26-2015, 06:01 PM   #1
Tiger
 
Join Date: Sep 2015
Posts: 15
Default Private Message

Hi, I've created private message system on dreamwaver / php, I'm just wondering weather there is a way to stop users from accessing other private messages?

I'm doing this buy URL Paramaters, So For Example, Site.com/Message.php?TOID=34993

If you change the numbers you can access other messages, Is there a way to stop this? I can't find much info! thanks
Tiger is offline   Reply With Quote
Old 09-26-2015, 10:52 PM   #2
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

Do you have a membership system on your site.im guessing yes but just asking. That will use sessions and you can restrict access to messages through those
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 09-27-2015, 06:55 PM   #3
Tiger
 
Join Date: Sep 2015
Posts: 15
Default

Quote:
Originally Posted by edbr View Post
Do you have a membership system on your site.im guessing yes but just asking. That will use sessions and you can restrict access to messages through those
Yes i do, but how would i go around restricting access? as the members table and pm table is set, So MM_Username Session wouldn't stop another user from reading another users messages as the only way i could display messages would be URL paramaters via ID?=233 ect...
Tiger is offline   Reply With Quote
Old 09-28-2015, 01:26 AM   #4
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

sorry i didnt answer well, i was on my phone and i get a bit short wityh replies.
i wouldnt use $_get to retrieve messages.
beter to put in database and rtrieve by $_post based on correct criteria of membership (session) and matching value of members id and messages sent to that member in a message table joined in a message table linked by members uniqhe ID and mathching that ID in a sent to field
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:19 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com