I've been looking at this all day, and now I have a large headache, can anyone see where I've gone wrong?
<% if var = "1" then
Response.Write "<a href= "" &Recordset1("enrolment" & "&SESSION=7234121865394181" & "s1=" &Recordset1("stName" & ">" & "Please click here to continue" & "</a>"
else
if var = "2" then
Response.Write "<a href= "" &Recordset1("enrolment" & "&SESSION=9952819590936663" & "s1=" &Recordset1("stName" & ">" & "Please click here to continue" & "</a>"
else
if var = "3" then
Response.Write "<a href= "" &Recordset1("enrolment" & "&SESSION=6083780287200261" & "s1=" &Recordset1("stName" & ">" & "Please click here to continue" & "</a>"
end if
end if
end if %>
That pasted badily I'm afraid. All the recordsets insert ok, but I can't get the syntax write to produce a clean link. I'm sure it's just a " in the wrong place, but after looking at it all day, I've probably gone round in circles.
Any help greatly appreciated.
Rich
<% if var = "1" then
Response.Write "<a href= "" &Recordset1("enrolment" & "&SESSION=7234121865394181" & "s1=" &Recordset1("stName" & ">" & "Please click here to continue" & "</a>"
else
if var = "2" then
Response.Write "<a href= "" &Recordset1("enrolment" & "&SESSION=9952819590936663" & "s1=" &Recordset1("stName" & ">" & "Please click here to continue" & "</a>"
else
if var = "3" then
Response.Write "<a href= "" &Recordset1("enrolment" & "&SESSION=6083780287200261" & "s1=" &Recordset1("stName" & ">" & "Please click here to continue" & "</a>"
end if
end if
end if %>
That pasted badily I'm afraid. All the recordsets insert ok, but I can't get the syntax write to produce a clean link. I'm sure it's just a " in the wrong place, but after looking at it all day, I've probably gone round in circles.
Any help greatly appreciated.
Rich