Forums
This topic is locked
What is wrong with this very small script...
Posted 03 Apr 2003 09:52:47
1
has voted
03 Apr 2003 09:52:47 Mike Lindegarde posted:
If Session( "MM_Username" ) <> "" Thendocument.write( "hi" )
End If
I know that the value of MM_Username is "mike", so why isn't "hi" displayed?
Replies
Replied 03 Apr 2003 11:20:43
03 Apr 2003 11:20:43 Vince Baker replied:
Try
If Request.Session("MM_Username"
<> "" Then
Document.write("Hi"
End If
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
If Session( "MM_Username" ) <> "" Then
document.write( "hi" )
End If
I know that the value of MM_Username is "mike", so why isn't "hi" displayed?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Regards
Vince
Visit my home: www.chez-vince.com
VBScript | ASP | HTML | SQL | Oracle | Hosting
If Request.Session("MM_Username"

Document.write("Hi"

End If
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
If Session( "MM_Username" ) <> "" Then
document.write( "hi" )
End If
I know that the value of MM_Username is "mike", so why isn't "hi" displayed?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Regards
Vince
Visit my home: www.chez-vince.com
VBScript | ASP | HTML | SQL | Oracle | Hosting
Replied 03 Apr 2003 12:38:53
03 Apr 2003 12:38:53 Owen Eastwick replied:
I think your mixing your scripting languages, try:
If Session( "MM_Username" ) <> "" Then
<b>response</b>.write( "hi" )
End If
Regards
Owen.
-------------------------------------------------------------------------------------------
Used programming books and web development software for sale (UK only): www.tdsf.co.uk/tdsfdemo/Shop.htm
Developer services and tutorials: www.drdev.net
Multiple Parameter UD4 / Access 2000 Search Tutorial: www.tdsf.co.uk/tdsfdemo/
If Session( "MM_Username" ) <> "" Then
<b>response</b>.write( "hi" )
End If
Regards
Owen.
-------------------------------------------------------------------------------------------
Used programming books and web development software for sale (UK only): www.tdsf.co.uk/tdsfdemo/Shop.htm
Developer services and tutorials: www.drdev.net
Multiple Parameter UD4 / Access 2000 Search Tutorial: www.tdsf.co.uk/tdsfdemo/