Forum Moderators: open

Message Too Old, No Replies

Beginner - posting info from one page to another

         

donnalorr

5:24 pm on May 11, 2006 (gmt 0)

10+ Year Member



HI...I am an asp beginner, although I have set up a few asp scripts. Question: I have an admin page for adding bids. Most fields are connected to an access database, but for this one field, I just need to collect the info on one page - it's actually a form field that users fill out -- it has the following code-- <input name="dtTime" type="text" class="newsInputBox" id="dtTime" size="15" value="<%=dtTime%>">

How do I pass this info to appear on another page which lists the bids? (All other fields were preprogrammed to appear and get saved to Access, but I really don't need to save this field. Just want to add it quickly). Thanks! I know this is simple asp function, but I just don't know how to make it work...

ItzFX

9:05 pm on May 12, 2006 (gmt 0)

10+ Year Member



The easiest method would be to put this value into a session variable.
On the following page, you would have this line of code:

Session("dtTime") = Trim(Request.Form("dtTime"))

so it goes into a session variable, which is automatically deleted when the user closes the browser, instead of going permanently in your access database.

You retrieve the value by putting this line of code:
dtTime = Session("dtTime")

That should be all.