Advertisement

04.27.2005 at 02:07PM PDT, ID: 21404979
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

Stopping users from been able to click multiple submits with the same form input!

Asked by Dcom4CIT in Active Server Pages (ASP)

Tags: , ,

Hi all,
I'm working with ASP (obviously) with an access database!
I have this page that allows the user to apply online for a course.
The action in the form tag calls a page that checks all required filelds were filled & only adds the users details if they were (or else an error page is displayed saying "Required field(s) name, address, etc.... weren't filled!")

Regular enough senario!

But my problem is that the user can use their back button to go back to the application page & hit submit again!
Then there is another record created for them in the database.

I could use code like the following at the top of my application page:

<%
' ### Make the page reload on using the back button! ### < START >
' This makes sure that the page is reloaded when the user uses the back button!
' Got from: http://www.net-language.com/CodeExample.aspx?i=92
'no cache - BROWSER
  Response.Expires = 0
  Response.Expiresabsolute = Now-1
  Response.AddHeader "pragma","no-cache"
  Response.AddHeader "cache-control","dim"
' no cache - PROXY
  Response.CacheControl = "no-cache"
  response.buffer = true
' ### Make the page reload on using the back button! ### < END >
%>

This would force a refresh (well in Internet Explorer anyway).
But in the event of the user not filling in all the required fields & a descriptve error message(s) been displayed to them, I would like the back button to be allowed because this then would prevent them from having to re-fill out the whole application again!
Also I don't want to disable the submit button on the application page or anything like that, because after one user has applied they might also want to apply for their friends!

I assume I have a few options:
1. Put in the code above to force a refresh & therefore the user HAS to re-fill the entire application each time!
2. Allow the back-button but have a check for a duplicate record in the database before I add in the new application.
3. Use the code above to force a refresh but store the previously selected & typed values in ASP variables, maybe sessions. And re-populate these when the application page is displayed!

Also while I'm on the subject of refreshing etc..
Does anyone have code that will force a refresh on both FireFox & Intrernet Explorer!

Can someone please tell me which option is best, or point me in the right direction!
Much much thanks!
Best,
Dcom.
Start Free Trial
[+][-]04.27.2005 at 02:22PM PDT, ID: 13880751

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]04.27.2005 at 02:31PM PDT, ID: 13880837

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.27.2005 at 02:44PM PDT, ID: 13880941

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Active Server Pages (ASP)
Tags: button, back, firefox
Sign Up Now!
Solution Provided By: carl_tawn
Participating Experts: 3
Solution Grade: A
 
 
[+][-]04.27.2005 at 06:26PM PDT, ID: 13881989

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.27.2005 at 09:20PM PDT, ID: 13882725

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.28.2005 at 01:32AM PDT, ID: 13883777

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.28.2005 at 06:12AM PDT, ID: 13885178

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.28.2005 at 06:54AM PDT, ID: 13885585

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.28.2005 at 06:58AM PDT, ID: 13885641

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32