VBrocks
08-19-2006, 05:36 PM
hey people this is my first time posting in a forum so hear goes..
I'm writing asp with VBscript and want to change the application(greeting) variable when a link is clicked,
i can get it to work fine like this:
<a onclick=" <% application("greeting") = "welcome back" %>" href="members.asp">login</a>
but i need to do this within a Response.write because its part of a longer "if Len.." statement.
here is what my original code was:
response.write("<tr><td><a href=' " & "members.asp" & " '>login</a></td></tr>")
and here is what i have tried but with no success:
response.write("<tr><td><a onclick=' " & application("greeting") ="welcome back" & " ' href=' " & "members.asp" & " '>login</a></td></tr>")
OK i dont get an error just the output = "False" rather than "login" as a link.
i asume this is because it is comparing application("greeting") with "Welcome back" rather than changing its value
hope someone can help it will be much appriciated
I'm writing asp with VBscript and want to change the application(greeting) variable when a link is clicked,
i can get it to work fine like this:
<a onclick=" <% application("greeting") = "welcome back" %>" href="members.asp">login</a>
but i need to do this within a Response.write because its part of a longer "if Len.." statement.
here is what my original code was:
response.write("<tr><td><a href=' " & "members.asp" & " '>login</a></td></tr>")
and here is what i have tried but with no success:
response.write("<tr><td><a onclick=' " & application("greeting") ="welcome back" & " ' href=' " & "members.asp" & " '>login</a></td></tr>")
OK i dont get an error just the output = "False" rather than "login" as a link.
i asume this is because it is comparing application("greeting") with "Welcome back" rather than changing its value
hope someone can help it will be much appriciated