Hi there,
I haven't looked at all the code in full detail, but I noticed this:
Code:
if Request.QueryString("Searchhotels")="Search" then
This seems to use a variable from the QueryString. However, a bit later in your code, you use a POST form with this code:
Code:
myScript=request.ServerVariables("SCRIPT_NAME")
send "<form name=form1 action=" & myScript & " method=post>"
The SCRIPT_NAME will not contain the QueryString, but just the page name. So, whenever the form form1 is submitted by clicking the Next button, you'll loose the value of the Searchhotels QueryString, causing your code to fail.
Either add the QueryString to the myScript variable (something like this:
Code:
myScript = Request.ServerVariables("SCRIPT_NAME") & "?" & Request.QueryString
or change the entire page so it uses just POST variables. In that case, you'll need to save the values of variables like Searchhotels in hidden form fields, so they are submitted with the form every time a user navigates forwards or backwards.
To make your page easier to understand, maintain and function, you could take a look at XHTML. Your code uses quite "old and messy" HTML, which can cause all kinds of problems (most notably, not quoting the values for attributes in form elements which can result in only partially submitted information).
Does this help?
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to:
De Eerste X by
Doe Maar (Track 9 from the album:
Doris Day en andere Stukken)
What's This?