Wrox Programmer Forums
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 7th, 2004, 08:38 AM
Authorized User
Join Date: Jun 2003
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Default request.form()

i have some code into one of the include pages that is cleanning out the query string from unwanted characters, and after doing it's job redirects to the same page was supposed to go.

the problem is that if a form is submited i am loosing all sessions.

Is there anyway I could detect if a form is submit it without having to insert some sort of hidden fields values.
The website is running for sometime now, and there are a lot of pages which have forms into, so I am looking for a simple way out it there is one.

Old November 7th, 2004, 09:14 AM
Authorized User
Join Date: Jun 2003
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts

I found the answer.

if Request.Form.Count = 0 then
execute the code
end if

Similar Threads
Thread Thread Starter Forum Replies Last Post
Request.Form / Request.QueryString Toran Classic ASP Databases 4 January 17th, 2007 02:23 PM
Problem with request.form. shankar_v1983 ASP.NET 2.0 Basics 1 January 28th, 2006 10:15 AM
request.qurystring vs. request.form Durwood Edwards Classic ASP Databases 3 June 18th, 2004 12:09 AM
request.querystring() , request.form() alyeng2000 ASP.NET 1.0 and 1.1 Basics 1 December 30th, 2003 12:07 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.