i have a form that on sumbit calls a page to do the mysql statements. After a successful insert or update i would like to return the user to the same page with a note at the top say "Insert successful"
Typically, I write a script that outputs a form that submits back to the script. The script, in general, would be of the form:
Code:
<?php
if (isset ($_POST['some field from the form']))
{
//process the input from the form, including inserting
//the data into mysql
//display "success" message and form
}
else
{
//display blank form
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.