rbonas
07-03-2003, 09:46 AM
the code below for some odd reason will not work. The values for the session variables are being assigned when a database is queried. but for some reason if the session variable is empty it goes onto the else portion of the statement
if Session ("aoemail1") = "" then
strTo = strTo &"here"
else
strTo= strTo & Session ("aoemail1")
strTo= strTo & ";"
end if
if Session ("aoemail2") = "" then
strTo = strTo &"here"
else
strTo= strTo & Session ("aoemail2")
strTo= strTo & ";"
end if
if Session ("supemail2") = "" then
strTo = strTo &"here"
else
strTo= strTo & Session ("supemail1")
strTo= strTo & ";"
end if
if Session ("supemail2") = "" then
strTo = strTo &"here"
else
strTo= strTo & Session ("supemail2")
end if
if Session ("aoemail1") = "" then
strTo = strTo &"here"
else
strTo= strTo & Session ("aoemail1")
strTo= strTo & ";"
end if
if Session ("aoemail2") = "" then
strTo = strTo &"here"
else
strTo= strTo & Session ("aoemail2")
strTo= strTo & ";"
end if
if Session ("supemail2") = "" then
strTo = strTo &"here"
else
strTo= strTo & Session ("supemail1")
strTo= strTo & ";"
end if
if Session ("supemail2") = "" then
strTo = strTo &"here"
else
strTo= strTo & Session ("supemail2")
end if