× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Thanks, Scott I will try this and let you know how it turns out!

Justin Houchin


-----Original Message-----
From: web400-admin@midrange.com [mailto:web400-admin@midrange.com] On
Behalf Of Scott Mildenberger
Sent: Friday, November 22, 2002 10:39 AM
To: 'web400@midrange.com'
Subject: RE: [WEB400] Static Forms and the refresh button

What if you keep track on the server of the Random Id and only allow a
request with a particular Random Id to happen once.  If you receive a
second
request send back a 'Sorry' reply.

Scott Mildenberger

> -----Original Message-----
> From: Justin Houchin [mailto:justin@reliatek.com]
> Sent: Friday, November 22, 2002 9:37 AM
> To: web400@midrange.com
> Subject: [WEB400] Static Forms and the refresh button
>
>
> 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??????
>
_______________________________________________
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 thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.