Link to home
Start Free TrialLog in
Avatar of Lev Seltzer
Lev SeltzerFlag for Israel

asked on

Classic ASP form has problems in FireFox

I created a form in Classic ASP many years ago, and recently this form has stopped working properly in FIreFox.

The form operates as follows: The user fills out a standard form, which contains one hidden field which is set to "YES". When they click SUBMIT the form returns to the same page, and the ASP code looks at the request.form("DonationFormComplete")  - if it is "YES" then the classic ASP code to process the form is executed.

In MSIE this works perfectly.

In FF (and I think chrome, too) the REQUEST.FORM collection is empty, and so the form is not processed. Interestingly, if the form is filled out again, it will work properly and the REQUEST.FORM collection contains all the form fields (including the hidden one).

I am still debugging this and wonder if someone can give me some tips as to how to find out the source of the problem. I already have the program display the REQUEST.FORM collection for debugging purposes, but as there is nothing in this collection, nothing is displayed!!

SO perhaps there is a different direction I can go in to determine the source of the problem. WHat tools can I use in FireFox to determine when certain collections or variables are changed? Or perhaps you might have a different suggestion to debug this.

Thank you.
ASKER CERTIFIED SOLUTION
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Lev Seltzer

ASKER

You can see it here:
https://www.zaka.org.uk/DonateItems.asp?ID=0&DBUG=EXEX

The last parameter above turns on a debug mode which will display all of the items in the REQUEST.FORM collection. It will also display a particular item from this collection "DonationFormComplete" and its value.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
OK. I will examine the JS more closely and see what I can come up with. THank you so far - I will be back soon with my own results.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I am still going through the form, trying to get it to work. I disabled the javasscript onsubmit, but it still doesn't work properly.

FYI: There are numbers you can use for credit card testing. I use 4111 1111 1111 1111 plus a valid date for visa. It will validate, but obviously it won't go through. There are other numbers for AMEX, discover, etc.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you for all your help. In the end, the client called in a panic. Whereas before the forms were being submitted, and just the thank you page was not being displayed, after I started to tweak the form the form was not even being submitted.

I abandoned the code I had, and instead of using an ASP <% if then %> statement on the donation page, and then displaying one of two pages (either the donation form or the thank you page), I created a separate thank you page, and had the form return to this page.

The original reason for creating the form in the first manner was there were four websites sharing the same code. THat is no longer applicable, so I just changed the code, and now it seems to work.

I am sorry that I did not respond quickly to your comments, and I appreciate your patience and assistance.
Awesome.   Thank you for the update.
groovy :) glad everythings working for you now!