hello everybody
how can distingush page was refreshed by php ?
Ihave a form. information in form insert to database when the form was submited.
but I have a problem , every time that page was refreshed the data was insert in DB so the data insert to DB More than once.
page refresh
Moderator: General Moderators
Here's a pretty simple solution: add a unique id to each form that you generate.. this way you can keep track exactly which form has been posted back.. and decide whether or not you're still accepting the values... (in order to prevent users tampering this 'unique id' i'd advise to keep a link between the id and the user... this way they can only mess with theirselves
)