Hello,
I have a " Villa details" web-page that shows details of villas from a database using ASP (the results set is called rs_av). Some of the information being shown is on 'availability of the villa for a certain week'.
If the villa is available for a certain week, I write a "book" link using:
<% If (rs_av.Fields.Item("w1_Avail").Value = True) Then
Response.Write "<a href='book.asp?"&MM_keepURL&"'>Book</a>"
..and this works ok, by passing the villaId (in MM_keepURL function) to the book.asp web page.
I want to display the Villa details on the book.asp page in an HTML form and one of the pieces of information I would like to show is the week the user has selected.
To do this I have set a variable "w" eg.
<% If (rs_av.Fields.Item("w1_Avail").Value = True) Then
Response.Write "<a href='book.asp?w=1&"&MM_keepURL&"'>Book</a>"
on hovering over the book link, I get (eg. for Villa 25)
on the book.asp page I now want to show the week selected in the form text field ... I'm using
<% If (w="1") Then Response.Write rs_av.Fields.Item("w1_Avail").Value %>
I'm having trouble with the passed variable "w" - how do I pick this up in the book.asp page
thks again in advance for any pointers
Credo
I have a " Villa details" web-page that shows details of villas from a database using ASP (the results set is called rs_av). Some of the information being shown is on 'availability of the villa for a certain week'.
If the villa is available for a certain week, I write a "book" link using:
<% If (rs_av.Fields.Item("w1_Avail").Value = True) Then
Response.Write "<a href='book.asp?"&MM_keepURL&"'>Book</a>"
..and this works ok, by passing the villaId (in MM_keepURL function) to the book.asp web page.
I want to display the Villa details on the book.asp page in an HTML form and one of the pieces of information I would like to show is the week the user has selected.
To do this I have set a variable "w" eg.
<% If (rs_av.Fields.Item("w1_Avail").Value = True) Then
Response.Write "<a href='book.asp?w=1&"&MM_keepURL&"'>Book</a>"
on hovering over the book link, I get (eg. for Villa 25)
on the book.asp page I now want to show the week selected in the form text field ... I'm using
<% If (w="1") Then Response.Write rs_av.Fields.Item("w1_Avail").Value %>
I'm having trouble with the passed variable "w" - how do I pick this up in the book.asp page
thks again in advance for any pointers
Credo