![]() |
rate error need help
hi
i use this code but everytime the user refresh the page its like if he rate again :s PHP Code:
|
up
up up... |
This is a common problem when submitted forms using POST. If you refresh the page your web browser will re-post the form to the script.
A common way to overcome this is to redirect the user to another page once the form has been submitted so that they are unable to re-post the form (well, without going back to the previous page). Alan. |
well ok im gnna do that thanks
i hope there is a way without redirection to another page :s |
There are a few other solutions out there - take a look at some of these sites for more ideas: PHP post refresh - Google Search
Alan |
I think I understand you. The best way is to forward the user back to another page using the
header function. Therefore if they tried to refresh, they POST data has gone and so it will not be re-posted.For this reason: why you should exit after header. |
ok thanks ;)
|
| All times are GMT. The time now is 11:26 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0