checkFormID
Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=20686
Printed Date: 11 April 2026 at 10:08am Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: checkFormID
Posted By: yourbudweiser
Subject: checkFormID
Date Posted: 14 July 2006 at 10:14pm
Hi, I added some new fields and removed others on register.asp
I am receiving the following error only when updating a user profile:
| Error |
Only members with sufficient permission can access this
page.
A security error has occurred with
authentication.
Please ensure that all cookies are enabled on your web
browser, you are not using a saved or cached copy of the page, and your
Firewall/Proxy settings are not hiding or masking your IP address. |
I have tracked the problem down to this line of code:
Call checkFormID(Request.Form("formID"))
If I comment out this line, I can successfully edit the user profile.
Please advise.
|
Replies:
Posted By: WebWiz-Bruce
Date Posted: 16 July 2006 at 11:46am
This part reads in a hidden field from the register.asp whos value is set in the Javascript in the head of the page when the form is submitted.
This is used to prevent remote submissions to the form by robots or hackers.
If you remove the line you should be OK, but you will just loose a layer of security.
------------- https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting
|
Posted By: yourbudweiser
Date Posted: 17 July 2006 at 2:00pm
i would prefer the forum be secure as possible...
if possible, can you briefly explain what I can do to get the function working correctly?
The only mods I made to register.asp was to add a few fields, do a
database lookup on one of those new fields before adding the user and
then write some info to a new table in the wwDatabase. Why would this
affect the checkFormID function?
Thanks for your time.
|
Posted By: WebWiz-Bruce
Date Posted: 18 July 2006 at 10:23am
First of all need to workout of the problem is in the ASP or the Javascript.
Use Firefox with it's JavsaScript Console running (found in the Tools menu on firefox).
If it is a Javascript error it should pop up an error message when you submit the form.
------------- https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting
|
Posted By: yourbudweiser
Date Posted: 19 July 2006 at 10:13pm
thanks so much Borg. I didn't even think of using the Firefox JS Console. It pinpointed the error:
I removed the option to allow the user to modify their password but
didn't remove/comment the Javascript code to validate it :)
|
|