The redirection to itself actually works. I wonder if there are any flaws in this 
process. It seems to be more of a work around instead of an actual correct way of 
doing things. What do you think?
  spider man <[EMAIL PROTECTED]> wrote: 
My script has HTML code generated at the at the file. There is an "if" condition on 
the param() values at the beginning for processing. Regardless of the "if" condition, 
the code to generate HTML code is executed at the end. So the form is 
http://..../..../form.pl and when you submit the form it doesn't redirect and run the 
same script again for the HTML. So you will see http://.../.../form.pl again. Would 
redirect to another URL and then back to the script form do the trick?
John Brooking wrote: When you say that after the text is processed, the
same form is regenerated back to user, how are you
doing that? Via a redirect? Another leading question
would be what is the URL shown in the address bar the
first time you enter the form, versus subsequent
times. Is it the same? If, on subsequent times, the
URL shown is still your processing script, that would
explain why Refresh appears to submit it again.

Come to think of it, that's similar to a problem I've
noticed with one of my scripts. Unfortunately for both
of us, I haven't bothered debugging it yet! :-)

- John

--- spider man 
wrote:
> I got a simple form running on NT IIS web server.
> Everything works fine. The simple form consist of
> text fields. When you fill out the text and submit
> the form, the text is processed and regenerates the
> same form back to the user. When the form
> regenerates, the fields are blanked out. At this
> point, if the user hits the refresh button on the
> browser with the same script then the same data is
> transferred again for processing. How can I prevent
> this?


=====
"Now it's over, I'm dead, and I haven't done anything that I want; or, I'm still 
alive, and there's nothing I want to do." - They Might Be Giants, http://www.tmbg.com

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


---------------------------------
Do You Yahoo!?
Sign-up for Video Highlights of 2002 FIFA World Cup


---------------------------------
Do You Yahoo!?
Sign-up for Video Highlights of 2002 FIFA World Cup

Reply via email to