Forum Moderators: open

Message Too Old, No Replies

Overwriting a form value

         

Tonearm

9:06 pm on Oct 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If a form is submitted for the second or third time, will the values it updates always overwrite the old values? I seem to remember some weird behavior with this when I've experimented with it before. I might remember some browsers overwriting and some appending, but I'm not sure. Does anyone have a definitive answer? Thanks!

jatar_k

2:15 am on Oct 18, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



It depends what you are doing with the values I would think.

If a form is submitted

by refreshing the handling page?
by hitting the back button and submitting again?

either way it is a new post, it doesn't necessarily have anything to do with the last. Once again it depends on what you are doing with the posted data.

Tonearm

6:06 pm on Oct 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm sorry, I should have been more clear about what I was doing. Basically, a form is submitted, and then on the next page there is a link to go back to the form page again. The whole point of that is so someone can submit their eBay auction number, and then go back and do it again and again with different numbers. Each time, the new value of the posted variable will be appended to a session variable behind a space character. Everything will be thrown off if certain browsers append the new value to the old one when posting to a form that has been posted to before in the same session.