Hi All,
Im busy working on a practice area for a CMS. I have it set so on a click, the edits are saved to mysql, but what im really after is a pop up window to show how it will look.
ive tried java script, but the likes of "onload" are no good to me (i dont think).
I know im after something client side, but it needs to go in the php "else" statement.
Somewhere in here (The onload is where the code would need to go).
please can somebody help? Thanks in advance
if (mysql_query($sql)) {
echo '<p>Author details updated.</p>';
header("location: index.php");
echo '<onLoad="popup()" onunLoad="popup()"></body>';
} else {
echo '<p>Error updating author details: ' .
mysql_error() . '</p>';