Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Session Variables

Status
Not open for further replies.

Reynet01

Technical User
Apr 27, 2004
59
US
I am trying to do an insert on a database with a couple of fields being updated with Session values However everything updates but the two fields that are being supplied by the session values. If i hit refresh on the web browser It creates a new record WITH the session Values inserted into the table. My queston is Can I make the session values populate with data before it inserts data.

If knowledge were power I would be a AAA battery!
 
Yes.

You might also consider checking the values of your Session variables before executing the INSERT.

Something like this maybe:

IF (Len(Session("Whatever")) > 0) THEN
'execute the INSERT
ELSE
'do not execute the INSERT
END IF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top