View Complete Thread | FoxWeb Forum Home
Date:    Msg ID:   
From:    Thread:   
I assume that you are trying to determine whether the current request was a result of a link from another page, or of a form submission to the same script.  A common technique is to assign a name to the submit button and check whether it was clicked:


IF Request.Form("function") = 'Continue'

    * This is a postback

    * Process the form input

    ... (code that processes the form input)


    * This is not a postback

    * Display form


    <form action="" method="post">

    ... (form fields)

    <input type="submit" name="function" value="Continue">






FoxWeb Support Team email

Sent by John Sullivan on 08/13/2006 09:32:13 PM:
I have a question regarding the best method for determining if the request to a page is a postback. I use the same page for many purposes. In Foxweb is it best to use the Request.FormCount to determine if the request to the page is a postback or a new request to the page? Or are their better methods?

If you have a method that works for determining if a request is a postback, please post some code. Your help is appreciated.

John Sullivan