Preserved Topic: PHP, forms and a 'reoccuring' problem (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: |
posted 03-14-2002 19:22
I have this form that allows someone to update a database. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 03-14-2002 19:51 |
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
posted 03-14-2002 19:52 |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 03-14-2002 21:14
That's not a bug. By refreshing the page, the script runs again, thus creating your problem. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 03-14-2002 23:09
Yeah what I like to do with my forms that submit to a db I usually just use one page that calls itself which includes different HTML pages depending on what it has done. |
Bipolar (III) Inmate From: |
posted 03-15-2002 01:38
Absolutely that makes sense...unfortunately. |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 03-15-2002 02:12
mobrul: There is no need to redirect if you do what bitdamaged suggests. Just off the top of my head (i.e. very crudely) try something like this (pos. some problem in there but I think it should work - if it doesn't someone will jump in and point out my error!!): |
Bipolar (III) Inmate From: |
posted 03-15-2002 14:42
Hey, that's pretty smooth, Emps...why didn't I think of that? |