|
I found the same problem, one solution is to make two pages in the CGI, one that recives the data, and does a refresh to the one that informs the user the custmoer number. So, if the user tryes to go back, he can not reach the form filled and refresh it. Other solution will be to assign the number and create a blank record, send the number in a hidden field, and once you receive the filled form you fill the empty record. (you will also need some garbish colection, user may abandon) Raul Justin Houchin wrote:
This is a multi-part message in MIME format. -- [ Picked text/plain from multipart/alternative ] Good Morning, Here is the scenario.I have a static form that has about 12 fields in it. This form submits the data to a CGI program I have called NEWCUSTSET. This program accepts the customer's first name, last name, address, etc.to create a new customer account. The NEWCUSTSET program sends back a response web page saying that the customer account has been created successfully. In the CGI program I calculate a new account number for the customer. If you hit the refresh button on the web browser (IE6.0), on the response page, it will resend the data to the program thus using the same information to create a new account and assigning it a new account number. So a customer service rep could sit there a hit and keep hitting the refresh button creating a thousand accounts with the same user information. Awhile back I asked this same question and received an answer to create a form with a "Random ID Number". Well I thought about how to use this and realized that you are still in the same predicament. Let's say instead of a static form page I use a CGI program (NEWFORM) to display the form page with a Random Id number. When the all information is entered into the form, it will be sent to the NEWCUSTSET program. The NEWCUSTSET program will read the information from the data stream, write it to the customer file, and create a response web page. Well if I refresh the response web page I still have the same data in the data stream. There is really nothing that I can do if I generate a Random ID. I think the approach we need to take to this is to find some JavaScript to disable the Refresh capability on the response page. Any suggestions?????? Thanks; Justin Houchin Programmer and Web Developer www.reliatek.com justin@reliatek.com _______________________________________________ This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To post a message email: WEB400@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/web400 or email: WEB400-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.