It's hard to know without seeing the entire flow of your web page whether this is "correct" or not...are you getting an error at any point?
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com