Duplicate php value

by 3 replies
4
Hello all,

I'm a learning php this year but i encounters some problems.

One of them is about php value. The problem is how do i do to prevent a php file from resending the same values into the database whenever the page is refreshed?

Anyone help?


Thanks,

Asep
#programming #duplicate #php #php value
  • Check the database and see if the data is there already. If it is, then do not enter it, if it is not then enter it.
    • [1] reply
    • You can use a cookie or session variable to determine if the current page has already been submitted to decide if you should do an insert or not.

      Sean
      • [1] reply
  • Banned
    [DELETED]

Next Topics on Trending Feed