sdz
|
| Posted: 05/07/2002, 10:10 AM |
|
I am dealing with the forum example, triyng to make easier for answering the prefilling of fields user & topic, asuming thar are the same as original message .
Any tip?
|
|
|
 |
Nicole
|
| Posted: 05/08/2002, 4:54 AM |
|
Hello,
to fill reply topic in CC Forum example and fill Author field with the name of logged in user put following code to before show insert event
ASP
fldtopic = dLookUp("messages", "topic", "message_id = " & ToSQL(GetParam("mid"), "Number"))
if Session("UserID")<> "" then
fldauthor = dLookUp("users", "user_name", "user_id=" & ToSQL(Session("UserID"), "Number"))
end if
PHP
$fldtopic = dLookUp("messages", "topic", "message_id = " . ToSQL(get_param("mid"), "Number"));
if (get_session("UserID")!= "")
$fldauthor = dLookUp("users", "user_name", "user_id=" . ToSQL(get_session("UserID"), "Number"));
|
|
|
 |
sdz
|
| Posted: 05/08/2002, 10:50 AM |
|
Thank you Nicole
|
|
|
 |
|