S NetObjects ScriptBuilder - [D:\wait\ocinfo\live\index.asp]
S3 |x ®
b i u m m m f- 1T br — hi H2 H3 H4 hs H6 S3 s®
Components
Script Components
Document
O Reference [t0 Map | jy Desktop
Script Library | Component Gallery
[ Ln 1
Pos 28 Total 421
Modified
<%@ Language=VBScript %> j
<%
i£ isempty(Session("StudentlD")) then ~
Response.Redirect /index.asp"
end if
i£ isempty(Session("CourselD")) then
Response.Redirect ".. / s tudent_menu. asp " end if
set conn = server.createobject ("adodb.connection")
conn.open Application("DNS"), Application("UserName"), Application("Pi
if not IsEmpty(Request. Form("Add")) then TempHessage = Reąuest.form("AddHessage")
TempPlace = instr(TempHessage, "'")
Do Until TempPlace = 0
TempHessage = left(TempHessage, TempPlace TempPlace = instr(TempHessage, " loop
set RSCurrentHessage = conn.Execute("select TopicHessage from OCChJl 4 "where TopicID = " 4 Reąuest.Form("ThreadID"))
AppendString = RSCurrentHessage("TopicHessage") _
4 "<P>From: <A HREF=""mailto:" 4 Session("StudentEmailAddress")
4 """>" & Session ("StudentWame") 4 "</A><BR>Date: " _
4 Datę 4 "</P><P>" 4 TempHessage
conn.Execute "update OCChalkboard set TopicHessage = 1" 4 AppendSti i
1) &
4 right(Tei
Insert
VB Script
dSti .