I'm having to use VBScript to write html and format a query string which includes variables. It's proving to be very frustrating.
To briefly explain, the Subroutine Write_TD has the parameters of sValue and sClass with sClass = "BOLD" in my example and the sValue parameter being the formatted anchor link. I can't get a second variable, Ending_Date, to be recognized. Does anyone know how to enter a second variable in the format for the query string?
I realize that this is a complicated example and I hope that there's someone who is familiar with this and can help me. I have been banging my head against my desk.
Code:
Write_TD "<A HREF=Food_Diary_Calendar.asp?Starting_Date="& Server.URLEncode(dToday) & " CLASS='DATA' > " & PrintDay & "</A>", "BOLD"
Sub Write_TD(sValue, sClass)
Response.Write " <TD ALIGN='RIGHT' WIDTH=20 HEIGHT=15 VALIGN='BOTTOM' CLASS='" & sClass & "'> " & sValue & "</TD>" & vbCrLf
End Sub
To briefly explain, the Subroutine Write_TD has the parameters of sValue and sClass with sClass = "BOLD" in my example and the sValue parameter being the formatted anchor link. I can't get a second variable, Ending_Date, to be recognized. Does anyone know how to enter a second variable in the format for the query string?
I realize that this is a complicated example and I hope that there's someone who is familiar with this and can help me. I have been banging my head against my desk.