I assume you want to inform your users of that an action has been completed correctly - ie: "Record Added".
I use a page called "message.php" which I redirect to after completing an action. The page "message.php" takes a URL parameter which identifies which message to display (pulled from database), any parameters to be included in the message, and where to redirect the user to afterwards - a typical URL would look like:
/message.php?id=RECORD_ADDED¶meters=appointment;20-08-2006&return_to=home.php
This might output something like:
A new appointment has been created for the 20-08-2006. Click <a href="home.php">here</a> to go back
mohson wrote:
javasript only produces a pop up box pertaining to the user clicking 'submit' button.
Not true - javascript alerts can be echoed to the screen by PHP at any point in the script's execution.