FP2002/ASP page counter

  • Thread starter Thread starter Tom Gahagan
  • Start date Start date
T

Tom Gahagan

Hi Emmett.....

Seems to me a very "EASY" :) solution would be 3 pages with a continue
button at the bottom of page 1 and page 2 and some simple validation in the
continue script that makes sure page1 or page 2 was filled out properly.
This would, of course, have to be functioning under some type of completion
variable that validates a completed form before it is all stored to your
data file.

Not as "cool" as what you are thinking about but perhaps it would get the
job done.

Anyway..... Best of luck on your efforts.

Tom Gahagan
 
Hi,

I have an FP2002 form on a website asking users for their opinions
about particular companies. The form posts the results to a csv file
and by email.

This is what I am trying to achieve. I would like a user to cycle
through the form three times for different companies. In order to do
so I want to prompt them after they have entered data for the first
and second companies saying for example "you have only entered data
for one company do you want to enter data for another company?"

I don't want them to see the prompt if they have fufilled the quota.
Can anybody suggest an asp script or page flow to achieve this? I am
thinking about using a hidden pagecount.asp page after the data entry
page that runs the following code:

<%
If (Request.Cookies ("Companies") ="") Then
Response.Cookies ("Companies") = 1
Else
Response.Cookies ("Companies") = Request.Cookies ("Companies")+1
End If

%>
<%

If Request.Cookies("Companies") > 2 Then
Response.Redirect "Go On.asp"
Else
Response.Redirect "Ask.asp"

End if

%>

Ask.asp asks the user if he wants to enter another company.

The cookies would be session cookies. I am not quite sure how reliable
this method would be or if there is an easier way of achieving what I
want.

I'de be grateful for any comments or suggestions on this problem.
Thanks in advance for any help.

Regards


Emmett Power
 
Back
Top