Duplicacy Issue In PHP /MYsql -



Duplicacy Issue In PHP /MYsql -

i inserting row in mysql table. row getting inserted in table. issues whenever refresh page, new row added in database.

how prevent it?

this browser's issue. repost info on refresh. prevent happening, you'll have check duplication of info in code each time new record inserted. general practice duplication of info has prevented.

in case genuine duplicate info expected , allowed, can redirect user on same registration page after each insertion header("location: {$location}");. clear post info of browser.

php mysql insert refresh

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -