If you want to store it in memory you have two choices, as an Application
variable so that it is incremented no matter who the user is, or a Session
variable if you only want to keep track of it based upon the current user.
Ideally though, you want this in a database if you really want a permanent
record, otherwise the data will be lost once the application is unloaded
from the server's memory which happens when the last session expires.
--
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
"Paul C" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Just, thought it won't work will it? when the page refreshes the dim xonce
> won't hold its value so it won't increment
> how is submit once usually done?
> Thanks
> Paul M
>
> "Paul C" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Thinking on it should be something like
>>
>> Dim xonce
>> if
>> xonce is more than "1" then Response .write "the form has already been
>> submitted"
>> else
>>
>> paul M
>>
>> "Paul C" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Hi I am trying to have a submit once to a form using asp . The idea I
>>> have is to incriment a dim by 1 everytime the script runs and then set
>>> up something like
>>>
>>>
>>> Dim xonce
>>> if
>>> xonce = "2" then Response .write "the form has already been submitted"
>>> else
>>>
>>> how would I first set up the dim to increment and then response write
>>> when it has
>>>
>>> Thanks
>>> Paul M
>>>
>>
>>
>
>
|