Forums
This topic is locked
User editing own messages
Posted 05 Nov 2002 09:10:56
1
has voted
05 Nov 2002 09:10:56 Jelle-Jacob de Vries posted:
How can I add a function to f.e. a forum, that makes it possible for users to edit/delete only there own messages?Could someone gif me a shot in the right direction?
Thanks in advance
Replies
Replied 06 Nov 2002 07:37:18
06 Nov 2002 07:37:18 Dave Clarke replied:
Just filter the recordset to only show messages posted by that person.
Or you could use a show/hide region on the records displayed and only have the edit and delete buttons showing if the message was posted by the current user.
<% If Recordset.Fields.Item("postedby"
.Value = (Session("MM_Username"
) Then %>
<img src="delete.gif">
<% End If
ASP|VBScript|IIS5.1|WinXPPro & WinXPHome
Or you could use a show/hide region on the records displayed and only have the edit and delete buttons showing if the message was posted by the current user.
<% If Recordset.Fields.Item("postedby"


<img src="delete.gif">
<% End If
ASP|VBScript|IIS5.1|WinXPPro & WinXPHome