|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
how to stop user flashing web pag
Hi all:
I want to write some information into database, then show user the thanks information if successful. but I find that if user flashes the web page, the information will be added into database again. Any one can help me? Thank you all |
|
#2
|
|||
|
|||
|
well.. you could use the header("location: "); to redirect the user to a different page and show the "thank you" there. I'm not sure wich language you use, so I gave a solution wich can be used in PHP.
|
|
#3
|
|||
|
|||
|
Well, I use PHP, the problem now is I do not know how to redirect to a new web page
|
|
#4
|
||||
|
||||
|
Umm, morten just told you how to redirect. Issue the following command, where "URL" is the fully qualified URL of the page you wish to redirect to:
PHP Code:
Note that if you print any output, have any stray blank lines at the top of your code, etc., this may not work. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > how to stop user flashing web pag |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|