B
bateman
Hi, I have a rather puzzling problem, have asked the ASP experts at work with
no joy and its driving me mad! I'll explain the steps in more detail below
but the general problem is I am manually creating a datetime value in my asp
pages that I am putting in a session. Now this isn't being passed from page
to page while other session objects are. There is no reason I can see for
this happening.
The steps I am using are:
page1.asp - A form where the user selects a time from a drop down menu that
then passes a value in the form to the next page
<select name="timeselection" class="formelements" id="timeselection">
<option value="6/21/2004 12:00:00">12:00</option>
<option value="6/21/2004 12:30:00">12:30</option>
<option value="6/21/2004 13:00:00">13:00</option>
<option value="6/21/2004 13:30:00">13:30</option>
<option value="6/21/2004 14:00:00">14:00</option>
<option value="6/21/2004 14:30:00">14:30</option>
<option value="6/21/2004 15:00:00">15:00</option>
</select>
page2.asp - The page asks the user to login or register. It posts back to
itself to check the username and password is correct. If I write out
Session("timeselection") it displays perfectly
timeselection = Request.Form("timeselection")
Session("timeselection") = timeselection
If Request.Form("username") <> "" THEN
formname = Request.Form("username")
formpass = Request.Form("password")
sSQL = "SELECT tbl_user.fld_user_uid, tbl_user.fld_firstname,
tbl_user.fld_surname, tbl_user.fld_email, tbl_user.fld_username FROM tbl_user
WHERE tbl_user.fld_username='"&formname&"' AND
tbl_user.fld_password='"&formpass&"'" Set Rs = Con.Execute(sSQL)
IF rs.EOF AND rs.BOF THEN
ELSE
Session("name") = Rs("fld_firstname")
Session("custid") = Rs("fld_user_uid")
Session("Authenticated") = "1"
Response.Redirect("/confirm.asp")
END IF
ELSE
END IF
page3.asp - Should display the confirmation details from the past selections.
All the sessions work apart from the timeselection, it just appears blank. If
I add a bit of text to timeselecion when i declare the session this appears
so it is passing something through. Its driving me mad!
timeselection = Session("timeselection")
custname = Session("name")
'in body works
=(name)
'doesn't display
=(timeselection)
no joy and its driving me mad! I'll explain the steps in more detail below
but the general problem is I am manually creating a datetime value in my asp
pages that I am putting in a session. Now this isn't being passed from page
to page while other session objects are. There is no reason I can see for
this happening.
The steps I am using are:
page1.asp - A form where the user selects a time from a drop down menu that
then passes a value in the form to the next page
<select name="timeselection" class="formelements" id="timeselection">
<option value="6/21/2004 12:00:00">12:00</option>
<option value="6/21/2004 12:30:00">12:30</option>
<option value="6/21/2004 13:00:00">13:00</option>
<option value="6/21/2004 13:30:00">13:30</option>
<option value="6/21/2004 14:00:00">14:00</option>
<option value="6/21/2004 14:30:00">14:30</option>
<option value="6/21/2004 15:00:00">15:00</option>
</select>
page2.asp - The page asks the user to login or register. It posts back to
itself to check the username and password is correct. If I write out
Session("timeselection") it displays perfectly
timeselection = Request.Form("timeselection")
Session("timeselection") = timeselection
If Request.Form("username") <> "" THEN
formname = Request.Form("username")
formpass = Request.Form("password")
sSQL = "SELECT tbl_user.fld_user_uid, tbl_user.fld_firstname,
tbl_user.fld_surname, tbl_user.fld_email, tbl_user.fld_username FROM tbl_user
WHERE tbl_user.fld_username='"&formname&"' AND
tbl_user.fld_password='"&formpass&"'" Set Rs = Con.Execute(sSQL)
IF rs.EOF AND rs.BOF THEN
ELSE
Session("name") = Rs("fld_firstname")
Session("custid") = Rs("fld_user_uid")
Session("Authenticated") = "1"
Response.Redirect("/confirm.asp")
END IF
ELSE
END IF
page3.asp - Should display the confirmation details from the past selections.
All the sessions work apart from the timeselection, it just appears blank. If
I add a bit of text to timeselecion when i declare the session this appears
so it is passing something through. Its driving me mad!
timeselection = Session("timeselection")
custname = Session("name")
'in body works
=(name)
'doesn't display
=(timeselection)