Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP MYSQL confirmation

Status
Not open for further replies.

jgurgen

Programmer
Mar 9, 2006
192
US
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"

how do i do this?
 
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
}



Want the best answers? Ask the best questions! TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top