i am working in a small php projects that will display dvd information to user upon query.But i am getting trouble in inserting data from dashboard .i want to add data from one page add.php to my database and must return to the same page after clicking submit button with some certain message that shows data added successfully or not
My preference is that the form submits to a handler page and then does a redirect back to the original page with message codes etc as parameters or session variables. You use a header() command to do the redirect and it prevents the user from inserting twice if they hit f5