Hi I am having a web form which on submit is entering the data in the database.
Now if the page is refreshed the data is entered in the database again. can any one help me on how to get it fixed..
i tried to check with the javascript and html page refreshes. but i am not getting on how to work with it.
any help is appreciated
hiya anubhavjha,
it is a common problem among new programmers. You have to make ur script in step wise. read below:
suppose
data.php is your php file which submits entries to database, now when it submits your script should land onto an html page, where you have a
javascript function which redirects to the actual page which you want to display after submission of data. This is very commonly seen on forums, when u just login and it says, wait for 5 seconds or click here if the browser doesn't redirects.
hope this helps
cheers !!