Re: refreshing problem
Okay, I gotcha. The same script generates the form everytime. If it has some parameters, it processes them first, then regardless, it draws the form for the next time. I think the browser is "working as intended". No matter what the current URL is, the "Refresh" button simply re-requests it, including any parameters that were included in the last request. That's just how it works. I've seen this lots of times with my own stuff. I think what you need to do is separate your form and your processing script. You should be able to still have the form page be a script of some sort, in case there is any data lookups and so forth to be done, but if it can be plain HTML and maybe a little client-side Javascript, all the better. Have the form call the script, which now does only the processing but no output, then have the script redirect back to the form page at the end. Then the "Refresh" button will repeat the request to show the form page only, and not the entire processing script. Hope this helps! - John --- spider man <[EMAIL PROTECTED]> wrote: > > 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? = "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 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: refreshing problem
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
Re: refreshing problem
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 <[EMAIL PROTECTED]> 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
Re: refreshing problem
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 <[EMAIL PROTECTED]> 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 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
refreshing problem
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? - Do You Yahoo!? Sign-up for Video Highlights of 2002 FIFA World Cup